Author Topic: wxSmith and tab order  (Read 4175 times)

Offline Jan van den Borst

  • Multiple posting newcomer
  • *
  • Posts: 99
wxSmith and tab order
« on: September 11, 2007, 09:15:56 pm »
How can I set the tab order of controls in wxSmith?

Jan

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith and tab order
« Reply #1 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

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: wxSmith and tab order
« Reply #2 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.
gcc+winXP+suse.

Offline Jan van den Borst

  • Multiple posting newcomer
  • *
  • Posts: 99
Re: wxSmith and tab order
« Reply #3 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

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith and tab order
« Reply #4 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

Offline Jan van den Borst

  • Multiple posting newcomer
  • *
  • Posts: 99
Re: wxSmith and tab order
« Reply #5 on: September 12, 2007, 09:13:05 am »
great!!!

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith and tab order
« Reply #6 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

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith and tab order
« Reply #7 on: September 16, 2007, 09:15:57 pm »
In reply to 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

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: wxSmith and tab order
« Reply #8 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.
gcc+winXP+suse.

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith and tab order
« Reply #9 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