Herohtar
Joined: 08 Nov 2006
Posts: 2551
Herohtar wrote:
Christian Walther wrote:
Hmm... even if it does auto-expand on Windows (every time you set its text, I assume), I don't think that's what it's supposed to do. What I expect it to do when you specify wxDefaultSize is that it computes the size of the text you give to the constructor and uses that as its fixed size from then on. But I'm not sure, I've always used those controls in sizers.
Who knows... Windows stuff does strange things.
Just an update on this... I was testing this today, and it seems that Windows completely ignores the width and height of the StaticText control. I can set it to something completely too small (1, 1) and the text still shows up as if I had the control set to the proper size.
By the way, I've updated the OP with some screenshots of how the program looks on my Windows XP system.
_________________
Nothing to see here, move along.




