wxStaticText and wxDevC++ question Topic is solved

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
webmasterpdx
Knows some wx things
Knows some wx things
Posts: 27
Joined: Thu Jun 25, 2009 2:43 am
Location: Portland, Oregon
Contact:

wxStaticText and wxDevC++ question

Post by webmasterpdx » Fri Dec 17, 2010 10:31 pm

I'm using version 7.2.0.2 and when I change the size of a wxStaticText, the text wraps around just like I want it to.
When I save it, the .wxform file contains the correct width and height as I entered in the form properties.
HOWEVER, when I reload the project, all my wxStaticText objects have the default heights and the width of the single line string again.
Is this a known bug? If so, is it fixed in the latest release? (I'm in no rush to update in case it breaks something else).
Is there a workaround?
Thanks
-Donald

webmasterpdx
Knows some wx things
Knows some wx things
Posts: 27
Joined: Thu Jun 25, 2009 2:43 am
Location: Portland, Oregon
Contact:

Post by webmasterpdx » Fri Dec 17, 2010 10:50 pm

Never Mind. I found the solution. I just need to set the flag properties->Label Style->WX_NO_AUTORESIZE to true. Then it works for that wxStaticText.
I found the solution in an older post (I'd never used the search on the forum before....). Thanks.
-Donald

Post Reply