Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Outis on June 28, 2007, 07:54:12 am

Title: wxSmith: exchanging sizers?
Post by: Outis on June 28, 2007, 07:54:12 am
Hi,

I created a new frame and started it with a wxGridSizer. Now that i've added lots of items, it looks a bit ugly. Is there a way to exchange the wxGridSizer with a wxFlexGridSizer without loosing it's content?
thx
Title: Re: wxSmith: exchanging sizers?
Post by: byo on June 28, 2007, 12:01:25 pm
Hi,

I created a new frame and started it with a wxGridSizer. Now that i've added lots of items, it looks a bit ugly. Is there a way to exchange the wxGridSizer with a wxFlexGridSizer without loosing it's content?
thx

You can exchange it manually - open corresponding .wxs file in any text editor, seach for wxGridSizer text and replace it with wxFlexGridSizer :). Make sure that you edit when resource is NOT opened in wxSmith.

This process may be easily automated, but that will be done after 1.0 release.

Regards
   BYO
Title: Re: wxSmith: exchanging sizers?
Post by: frithjofh on June 28, 2007, 02:56:19 pm
Hi,

how about letting one change the class of the sizer in the properties tab: that line where it says class name...

regards

frithjofh
Title: Re: wxSmith: exchanging sizers?
Post by: Outis on June 28, 2007, 07:07:02 pm
@byo thanks, my frame looks pretty nice now  :wink: