>From MapBasic Help (dialog statement) Specifying the Tab Order
The user can press the Tab key to move the keyboard focus through the dialog. The focus moves from control to control according to the dialog's tab order. Tab order is defined by the order of the Control clauses in the Dialog statement. When the focus is on the third control, pressing Tab moves the focus to the fourth control, etc. If you want to change the tab order, change the order of the Control clauses. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -----Original Message----- From: Martin Hodder [mailto:[EMAIL PROTECTED]] Sent: September 19, 2002 04:15 To: Doyle, Peter W; 'Mapinfo-L' Subject: Re: MI-L Dialog Tab Order Hi, Following on from Valadmir's comments - I had not tested! So I thought I would actually test the theory and the results are quite interesting. 1) The Alter Control active statement does indeed only work for edittext controls 2) It turns out that we can both be right regarding the tab order. Take the code at the bootom of the email and compile and run it. You will see that the list box is the active control. You can play around by putting the OK button at the top and that will be the active control. Put the radiogroup at the top and that will be the active control. Now for the quirky bit:- If you uncomment the Value 0 statement in the radiogroup and compile - it is not longer the active control on start up Put value 1 instead and it is back to being the active control. At least that what happens for me! (MB6.0 MI6.0 Win2000) Here is the code i used for testing:- Dialog Title "tab order" Control LISTBOX ID 3 Position 12, 30 Title "test1;test2" Width 67 Height 86 Control RADIOGROUP ID 4 Position 174, 30 Width 63 Height 20 Title "Test 1; Test 2" ' Value 0 Control STATICTEXT ID 5 Position 5, 5 Width 64 Height 17 Title "Test" Control OKBUTTON ID 1 Position 176, 144 Width 32 Height 15 Title "&Ok" Control CANCELBUTTON ID 2 Position 221, 144 Width 30 Height 14 Title "&Cancel" Interested to hear if this is right as it has always been my understanding that the active control is the first user changeable in the statement Regards Martin ----- Original Message ----- From: "Doyle, Peter W" <[EMAIL PROTECTED]> To: "'Mapinfo-L'" <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 7:12 AM Subject: MI-L Dialog Tab Order > Greetings Listers, > > I am trying to set the Tab Order in a dialog, but I can't seem to get a > Radio Group to be the default tab position (eg. the default control that is > selected when I open the dialog) > > The Radio Group in question is the first control listed in the Dialog > statement, but when I open the dialog it always defaults to an EditText box. > > Is the Tab Order in some way relayed to th Control ID number > > Any help appreciated. > > Regards > > Peter Doyle > TELSTRA > Infrastructure Services > Network Services > Wireless Networks, Qld > Geographical Information Systems & Mapping > +61 7 38871128 > Email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 3123 > > --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3130 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3134