User forums > Using Code::Blocks

wxSmith strange bug

(1/1)

wral:
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>
--- End code ---

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




oBFusCATed:
This is a feature, just use sizers :)
For more details: http://docs.wxwidgets.org/2.8/wx_sizeroverview.html

wral:
lol :D

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

Navigation

[0] Message Index

Go to full version