Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: wral on March 03, 2013, 11:06:48 pm

Title: wxSmith strange bug
Post by: wral on March 03, 2013, 11:06:48 pm
When i try to create a button or input using wxSmith, this button or input fit whole frame. I cant resize it. Even when i manually change size of it its still so big.

http://i.imgur.com/7Huc40A.png

In wxs file it looks like:
Code
<object class="wxButton" name="ID_BUTTON1" variable="Button1" member="yes">
<label>Label</label>
<pos>0,0</pos>
<size>20,30</size>

I dont know, but seems valid.
But after compile and run application looks same as in editor (big button fitting whole frame).

I use the newest codeblocks, and wxWidgets 2.8.12
My system is win xp sp3 32bit

Someone knows how can i deal with it?

Cheers,
wral




Title: Re: wxSmith strange bug
Post by: oBFusCATed on March 03, 2013, 11:15:30 pm
This is a feature, just use sizers :)
For more details: http://docs.wxwidgets.org/2.8/wx_sizeroverview.html
Title: Re: wxSmith strange bug
Post by: wral on March 03, 2013, 11:26:15 pm
lol :D

i already "fixed" it by trying to place 2nd button on first button, and both magically resized to small resizeable ones :P