FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Folder and SetFocus()
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Folder and SetFocus()
Posted: Mon Jan 14, 2008 10:45 AM

Hi to all,
I have a problem with the focus control sequence on a Folder.

See this image sample at www.softwarexp.co.uk/beta/image1.png

I have set with WorkShop the focus sequence from the first control to the last control but when the last combobox (Detraibilità fiscale) lost the focus then the focus go to the "OK" button instead of the "Importo" GET control.

I also tried to put an oCbx:bLostFocus={||oGet:SetFocus()} but unsuccesfully.

Any ideas appreciates. Thanks.

Best Regards,

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Folder and SetFocus()
Posted: Mon Jan 14, 2008 11:03 AM

Please show a reduced and self-contained sample of the problem.

EMG

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Folder and SetFocus()
Posted: Mon Jan 14, 2008 04:25 PM

Hi,
I made a self-contained sample (with executable and source) that show the problem.

You can download it at:

www.softwarexp.co.uk/beta/sample.zip

to check the problem simply go to the "Detraibilità fiscale" combobox and then press the "Tab" key.
You will see that the focus will move on the "Ok" button instead the "Importo" get.

I would like the focus goes to the get control after pressing a "Tab" or "Enter" key on the "Detraibilità fiscale" combobox.

Any ideas ?

Thanks,

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Folder and SetFocus()
Posted: Mon Jan 14, 2008 05:49 PM

Just move the REDEFINE of oGet1 after oCbxN17.

EMG

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Folder and SetFocus()
Posted: Mon Jan 14, 2008 06:02 PM

Yes. It runs fine now.
I didn't know that the code control sequence was so importance.

Thanks a lot.

Best Regards,

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion