Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Jan van den Borst on September 11, 2007, 09:15:56 pm

Title: wxSmith and tab order
Post by: Jan van den Borst on September 11, 2007, 09:15:56 pm
How can I set the tab order of controls in wxSmith?

Jan
Title: Re: wxSmith and tab order
Post by: byo on September 11, 2007, 10:34:50 pm
Hmm, if you use sizers, they automatically set tab order, if you don't use them... hmm, curently no feature dedicated to this. It can be done by some trick (by moving all items to some temporary panel and put them back one after another in required order), but that may introduce some problems.

Regards
   BYO
Title: Re: wxSmith and tab order
Post by: Grom on September 11, 2007, 11:02:05 pm
Byo, could you pls add row and col number to the wxTable. Those are only few more commands.
Title: Re: wxSmith and tab order
Post by: Jan van den Borst on September 11, 2007, 11:43:18 pm
Is it perhaps possible to hack the .wxs file manually (first entry has lowest TAB order) ?
Jan
Title: Re: wxSmith and tab order
Post by: byo on September 12, 2007, 12:10:34 am
Is it perhaps possible to hack the .wxs file manually (first entry has lowest TAB order) ?
Jan

Yup, this could be done either through wxs or through xrc (if used). The order in which items appear in wxs/xrc is the final tab order.

I'll also try to implement some easy right-click popup menu with stuff like "Bring to front" and "Put to bottom" - this also could be used to set valid tab order.

BYO
Title: Re: wxSmith and tab order
Post by: Jan van den Borst on September 12, 2007, 09:13:05 am
great!!!
Title: Re: wxSmith and tab order
Post by: byo on September 12, 2007, 11:40:51 pm
Ok, done, should be in next nightly. To set correct tab order, just right-click on each item in resource in desired order and select "Bring to front" (if it's available).

Regards
   BYO
Title: Re: wxSmith and tab order
Post by: byo on September 16, 2007, 09:15:57 pm
In reply to http://forums.codeblocks.org/index.php/topic,6912.msg52941.html#msg52941 (http://forums.codeblocks.org/index.php/topic,6912.msg52941.html#msg52941):

I think that those names are correct because they change z-order. It may additionaly be used to change tab order since z-ordering and tab-ordering in wxWidgets are simillar. Of course I can adjust the names a little bit.

BYO
Title: Re: wxSmith and tab order
Post by: Grom on September 16, 2007, 10:38:48 pm
Would be grate to make possibility of changing of the folder for the wxSmith files. Say I want to keep the GUI stuff in sub folder of my project. But I can't do that.
Title: Re: wxSmith and tab order
Post by: byo on September 16, 2007, 11:27:42 pm
Would be grate to make possibility of changing of the folder for the wxSmith files. Say I want to keep the GUI stuff in sub folder of my project. But I can't do that.

Grom: Please, send feature request into berlios, this topic isn't about new features but about tab-order ONLY