Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BrokenBrain on April 11, 2008, 10:17:36 am

Title: WxSmith usage, sizer
Post by: BrokenBrain on April 11, 2008, 10:17:36 am
I have this Frame

(http://nonsocosafare.googlepages.com/wxSmith.JPG)

Now I want to put BoxSizer1 in a another orizontal sizer , how to do this?
Do i have to edit the .wxs file myself?
Title: Re: WxSmith usage, sizer
Post by: joubertdj on April 11, 2008, 11:18:41 am
... uh ... I first would created the wxBoxSizer where I wanted it, and then in the GUI click and drag the BoxSizer1 within the newly created wxBoxSizer?
Title: Re: WxSmith usage, sizer
Post by: BrokenBrain on April 11, 2008, 11:23:24 am
The problem is that i written a lot of code.
So if I delete the Boxsizer1 I lost the work done.
So I'm lokking for a better solution, the best thing is to add the boxer with wxSmith if ther's a way.
If not, i prefer to edit the xml file of wxSmith rather than rewrite all the code.

Title: Re: WxSmith usage, sizer
Post by: joubertdj on April 11, 2008, 11:29:52 am
I have written code and when you move one within the other one... without deleteing it ... you don't lose any code ...
Title: Re: WxSmith usage, sizer
Post by: joubertdj on April 11, 2008, 11:47:36 am
 :) Now I see what you mean ... okay ... I have to admit ... it will be a cool feature ... especially if you could "cut" and "paste" between different frames/dialogs...

[EDIT] ... yet using Crtl-X and Ctrl-V does exactly that ... when using the GUI editor ... :lol:
Title: Re: WxSmith usage, sizer
Post by: BrokenBrain on April 11, 2008, 11:53:42 am
And settings?
I know that i could redo the structure and by usa the same name i can not lose the code but,
i have to set all the label again, and it's very hard work, becauesa they are many.
Just to have an idea

(http://nonsocosafare.googlepages.com/WxSmith2.jpg)

And i have not expanded all...
And if tomorrow i have to change anything else , i have to chage everything again?
That's a problem, i'm thinking to do not use sizers next time  :(