Folder and SetFocus()

Folder and SetFocus()

Postby Marco Turco » 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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Folder and SetFocus()

Postby Enrico Maria Giordano » Mon Jan 14, 2008 11:03 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Marco Turco » Mon Jan 14, 2008 4: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Enrico Maria Giordano » Mon Jan 14, 2008 5:49 pm

Just move the REDEFINE of oGet1 after oCbxN17.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Marco Turco » Mon Jan 14, 2008 6: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Enrico Maria Giordano » Mon Jan 14, 2008 6:56 pm

Me neither. :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests