Page 1 of 1

Folder and SetFocus()

Posted: Mon Jan 14, 2008 10:45 am
by Marco Turco
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

Re: Folder and SetFocus()

Posted: Mon Jan 14, 2008 11:03 am
by Enrico Maria Giordano
Please show a reduced and self-contained sample of the problem.

EMG

Posted: Mon Jan 14, 2008 4:25 pm
by Marco Turco
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

Posted: Mon Jan 14, 2008 5:49 pm
by Enrico Maria Giordano
Just move the REDEFINE of oGet1 after oCbxN17.

EMG

Posted: Mon Jan 14, 2008 6:02 pm
by Marco Turco
Yes. It runs fine now.
I didn't know that the code control sequence was so importance.

Thanks a lot.

Best Regards,

Marco

Posted: Mon Jan 14, 2008 6:56 pm
by Enrico Maria Giordano
Me neither. :-)

EMG