BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Strange TDBRadio Group Button order

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.usage
View previous topic :: View next topic  
Author Message
Christine Vill
Guest





PostPosted: Tue Sep 09, 2003 8:24 am    Post subject: Strange TDBRadio Group Button order Reply with quote



Hello!
I have a TDBRadioGroup with four items on a form. looks like this:
o item1
o item2
o item3
o item4
All items are in one column. If I want to navigate between the items
with the arrow-keys i goes like this.
if item1 is selected, pressing arrow-down selects item3, if i press
another time arrow-down, item1 is selected again and so on
the same thing with arrow-up..
if i select item2 with the mouse (because it is not possible do it by
keyboard) pressing any arrow key selects item4 and then, pressing the
arrow key again, reselects item2 and so on

I hav already tried to install a key-eventhandler for each RadioButton
implementing SelectNext or also manually selecting the next control
but that doesn't work, the strange tab order remains.

I'm using D6

Thanks for any help

Christine
Back to top
Jose Perez
Guest





PostPosted: Tue Sep 09, 2003 6:06 pm    Post subject: Re: Strange TDBRadio Group Button order Reply with quote



"Christine Vill" <livmia (AT) gmx (DOT) net> wrote

Quote:
Hello!
I have a TDBRadioGroup with four items on a form. looks like this:
o item1
o item2
o item3
o item4
All items are in one column. If I want to navigate between the items
with the arrow-keys i goes like this.
if item1 is selected, pressing arrow-down selects item3, if i press
another time arrow-down, item1 is selected again and so on
the same thing with arrow-up..
if i select item2 with the mouse (because it is not possible do it by
keyboard) pressing any arrow key selects item4 and then, pressing the
arrow key again, reselects item2 and so on

I hav already tried to install a key-eventhandler for each RadioButton
implementing SelectNext or also manually selecting the next control
but that doesn't work, the strange tab order remains.

I don't have D6, but just about every control that I have looked at has a
Tab Order property that is incremented for each control that is added. To
change the tab order, just go into the Object Inspector, select the
Properties tab and then select Tab Order. Enter the order number that you
want (the numbering starts at 0) to override the value that Delphi's IDE
assigned.

Quote:
I'm using D6

Thanks for any help

Christine



Back to top
Christine Vill
Guest





PostPosted: Wed Sep 10, 2003 6:28 am    Post subject: Re: Strange TDBRadio Group Button order Reply with quote



No, this doesn't work because you can'T access RadioButtons in a Radio
Group via Object Inspector. i tried already to assing the tab value by
code but this doesn't work either.

Christine

"Jose Perez" <jomperez (AT) optonline (DOT) net> wrote

Quote:
"Christine Vill" <livmia (AT) gmx (DOT) net> wrote in message
news:703d66cd.0309090024.5e9afe2f (AT) posting (DOT) google.com...
Hello!
I have a TDBRadioGroup with four items on a form. looks like this:
o item1
o item2
o item3
o item4
All items are in one column. If I want to navigate between the items
with the arrow-keys i goes like this.
if item1 is selected, pressing arrow-down selects item3, if i press
another time arrow-down, item1 is selected again and so on
the same thing with arrow-up..
if i select item2 with the mouse (because it is not possible do it by
keyboard) pressing any arrow key selects item4 and then, pressing the
arrow key again, reselects item2 and so on

I hav already tried to install a key-eventhandler for each RadioButton
implementing SelectNext or also manually selecting the next control
but that doesn't work, the strange tab order remains.

I don't have D6, but just about every control that I have looked at has a
Tab Order property that is incremented for each control that is added. To
change the tab order, just go into the Object Inspector, select the
Properties tab and then select Tab Order. Enter the order number that you
want (the numbering starts at 0) to override the value that Delphi's IDE
assigned.

I'm using D6

Thanks for any help

Christine

Back to top
Jose Perez
Guest





PostPosted: Wed Sep 10, 2003 3:52 pm    Post subject: Re: Strange TDBRadio Group Button order Reply with quote


"Christine Vill" <livmia (AT) gmx (DOT) net> wrote

Quote:
No, this doesn't work because you can'T access RadioButtons in a Radio
Group via Object Inspector. i tried already to assing the tab value by
code but this doesn't work either.

Christine

<snip>
Mea culpa. I was thinking in terms of the standard radio buttons. I have D7.
In D7, a radio button is added to a radio group by adding a string to the
Items property. If D6 does this the same way, have you tried reordering the
strings in Items? Or just delete them all and then reenter them?

I tried to recreate your problem in D7, but was unable to. D7 appears to
automatically update the tab order when radio buttons are inserted or added
to the radio group.



Back to top
Christine Vill
Guest





PostPosted: Thu Sep 11, 2003 10:19 am    Post subject: Re: Strange TDBRadio Group Button order Reply with quote

Yes I did so...
Doesn't work, the odd order remains...



"Jose Perez" <jomperez (AT) optonline (DOT) net> wrote

Quote:
"Christine Vill" <livmia (AT) gmx (DOT) net> wrote in message
news:703d66cd.0309092228.46210687 (AT) posting (DOT) google.com...
No, this doesn't work because you can'T access RadioButtons in a Radio
Group via Object Inspector. i tried already to assing the tab value by
code but this doesn't work either.

Christine

snip
Mea culpa. I was thinking in terms of the standard radio buttons. I have D7.
In D7, a radio button is added to a radio group by adding a string to the
Items property. If D6 does this the same way, have you tried reordering the
strings in Items? Or just delete them all and then reenter them?

I tried to recreate your problem in D7, but was unable to. D7 appears to
automatically update the tab order when radio buttons are inserted or added
to the radio group.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.usage All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.