WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Radiobuttons and Tabs

 Keywords: WIL Dialog Radiobutton Tabs Control Tab Order 

Question:

I have in the past not had a problem with setting tab stops in a dialog "tabbing" from one control to another control in order but now for some reason there is a problem take this example:
MyDialogFormat=`WWWDLGED,6.2`

MyDialogCaption=`WIL Dialog 5`
MyDialogX=218
MyDialogY=089
MyDialogWidth=368
MyDialogHeight=213
MyDialogNumControls=009
MyDialogProcedure=`DEFAULT`
MyDialogFont=`DEFAULT`
MyDialogTextColor=`DEFAULT`
MyDialogBackground=`DEFAULT,DEFAULT`
MyDialogConfig=0

MyDialog001=`099,195,036,012,PUSHBUTTON,"PushButton_OK",DEFAULT,"OK",1,10,32,DEFAULT,DEFAULT,DEFAULT`
MyDialog002=`233,195,036,012,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"Cancel",0,20,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog003=`091,021,044,012,RADIOBUTTON,"RadioButton_1",rbVariable,"Radio 1",1,30,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog004=`091,045,044,012,RADIOBUTTON,"RadioButton_2",rbVariable,"Radio 2",2,40,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog005=`089,069,044,012,RADIOBUTTON,"RadioButton_3",rbVariable,"Radio 3",3,50,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog006=`091,103,036,012,EDITBOX,"EditBox_1",ebVariable1,"Edit 1",DEFAULT,60,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog007=`157,021,044,012,RADIOBUTTON,"RadioButton_4",rbVariable,"Radio 4",4,70,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog008=`161,051,044,012,RADIOBUTTON,"RadioButton_5",rbVariable,"Radio 5",5,80,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog009=`163,083,044,012,RADIOBUTTON,"RadioButton_6",rbVariable,"Radio 6",6,90,DEFAULT,DEFAULT,DEFAULT,DEFAULT`

ButtonPushed=Dialog("MyDialog")
when you run the above dialog you should be able to tab from "Radio 1" to "Radio 2" and so forth down the first col and then jump to the top of the second col....

but it does not work that way for me it goes from "Radio 1" to "Edit 1" and then to "OK" then "cancel" and back to "Radio 1"......

What am I missing here, other than my mind...

Answer:

Your radio buttons all share a common variable so they are all treated as part of radio button group. You navigate between radio buttons of a group by using the arrow keys instead of the tab key. This behavior is part of the Windows user experience specification.

If you want to be able to navigate between the buttons using the tab key, you will need to give each radio button a unique variable name.


Article ID:   W17772
Filename:   Radiobuttons and Tabs.txt
File Created: 2010:11:17:13:49:42
Last Updated: 2010:11:17:13:49:42