Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 6046 of 6157
Post > Topic >>

Re: Problem with tab order and group box

by Bart <broersma.juda_ANTISPAM_@[EMAIL PROTECTED] > May 5, 2008 at 12:45 PM

Op Thu, 1 May 2008 10:00:24 -0700 (PDT) schreef fig000
<neilnewton001@[EMAIL PROTECTED]
>:

>Hi,
>
>  I'm somewhat new to delphi. Due to the needs of the app which runs
>on a scan gun with a limited keyboard, I'm actually tabbing using the
>enter key. Basically when they hit the enter key, it's trapped and
>the
>program does the following:
>
>
>      SelectNext(ActiveControl, True, True);
>
>
> It works fine except for when I try to "tab" to the first field in a
>group box with two controls (a listbox and an tedit). What always
>happens is that it goes to the second control in the group box and
>the
>first control never gets focus. I've checked the tab order with in
>the
>group box in the properties and by right clicking the group box. Also
>the group box has the correct tab order within the controls on the
>page (i'ts the third control).
>
>
>  I tried reversing the tab order with in the group box by right
>clicking and choosing tab order, just to see what happens. In this
>case I do get to the first control when I hit enter, but the second
>one never gets focus.
>
>
>  I have a feeling that when it hits the groupbox in the tab order
>it's automatically going to the first control and then the SelectNext
>is sending it right to the second. I've tried not doing the
>SelectNext
>if I'm in the groupbox (testing groupbox.focused) or in the first of
>the two controls (listbox.focused). In neither case does focus seem
>to
>detect that I'm in the groupbox so it doesn't work.
>
>
>  I'm a newbie so please bear with me. Any help would be appreciated.
>
>
>Fig000
>
Are you sure the control that you cannot reach does not have (by
mistake) the TabStob value set to false ?

Bart
-- 
Bart Broersma
broersma.juda_ANTISPAM_@[EMAIL PROTECTED]
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)
 




 5 Posts in Topic:
Problem with tab order and group box
fig000 <neilnewton001@  2008-05-01 10:00:24 
Re: Problem with tab order and group box
Hans-Peter Diettrich <  2008-05-01 20:47:14 
Re: Problem with tab order and group box
Fons <fonzzzNO@[EMAIL   2008-05-01 22:49:18 
Re: Problem with tab order and group box
"alanglloyd@[EMAIL P  2008-05-02 05:07:42 
Re: Problem with tab order and group box
Bart <broersma.juda_AN  2008-05-05 12:45:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 11:17:20 CDT 2008.