Author Topic: wxSmith: exchanging sizers?  (Read 2386 times)

Offline Outis

  • Multiple posting newcomer
  • *
  • Posts: 26
wxSmith: exchanging sizers?
« 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

Offline byo

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

Offline frithjofh

  • Regular
  • ***
  • Posts: 373
Re: wxSmith: exchanging sizers?
« Reply #2 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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline Outis

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: wxSmith: exchanging sizers?
« Reply #3 on: June 28, 2007, 07:07:02 pm »
@byo thanks, my frame looks pretty nice now  :wink: