On Sat, Nov 26, 2011 at 11:27 PM, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com">andrej.mitrovich@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've managed to get StyledTextCtrl compiled and working. I had to add<br>
a few missing .obj/.cpp file entries in the DMC makefile for the<br>
StyledTextCtrl contrib tree (just a couple of lexer files), but there<br>
was also a cyclic import problem in wxd between wx.StyledTextCtrl's<br>
and wx.TaskBarIcon's module ctors.<br>
<br>
So as a temporary workaround I've merged STC's ctor into TaskBarIcon.d.<br>
<br>
Btw, how can I figure out what "int style" means for STC? The docs<br>
I've found only don't say anything about what that option is in the<br>
ctor. I'm trying to make STC autoexpand in a  tab widget. But STC<br>
stays the same size when I resize the window:<br>
<a href="http://paste.pocoo.org/show/513430/" target="_blank">http://paste.pocoo.org/show/513430/</a><br>
<br>
Maybe I need to use events on size changes?<br>
</blockquote></div><div><br></div><div>The style int is a bitfield with stuff like border options and sometimes control specific settings.  Check wxWindow's documentation for the basic styles.</div><br><div>You use sizers for pretty much all layout work in wxWidgets.  To do what you want you could make a vertical box sizer, add the STC with a proportion of 1 (expand vertically) and wxEXPAND flag (expand horizontally), and set it as the sizer of the parent window.</div>
<div><br></div><div>This short tutorial is helpful for learning to use sizers: <a href="http://neume.sourceforge.net/sizerdemo/">http://neume.sourceforge.net/sizerdemo/</a></div><div><br></div><div>Regards,</div><div>Brad Anderson</div>