XRC-related question

Cees De Groot cdegroot at gmail.com
Wed Jul 27 15:08:15 UTC 2005


On 7/27/05, Cees De Groot <cdegroot at gmail.com> wrote:
> Hmm... tried some more, and it's not doing what the 'Fit to parent'
> button in wxGlade does. I wonder what code is behind it (probably need
> to grab the wxGlade source code for that...)
> 
Ok, two steps gave the solution:
- A multi-line static text needs to be run through 'replaceAll:
Character cr with: Character lf'. Apparently Wx, even though it
displays the CR's correctly, doesn't handle them when calculating
sizes;
- "self view getSizer fit: self view" seems to be necessary before the
call to #layout. Haven't got a clue what it does, I nicked it from the
wxGlade sources.

Got my 'message dialog with check box' component now. And my first XRC UI!



More information about the Wxsqueak mailing list