b> I’m trying to set up a very simple window – due to implementation, I
b> need to do it through a .xrc file...
But you don't need to create XRC file by hand, most people prefer to use a
dialog editor for it. Of course, there is absolutely nothing wrong with
writing it manually neither, this is what I personally do. But if you don't
know the meaning of "option" tag, it's probably better to start
experimenting with the GUI tools.
b> PS. I can’t find any documentation for <option> but it seems to be
b> littered all over our codebase... can someone explain what it’s for?
The documentation for option itself is at
http://docs.wxwidgets.org/trunk/overview_xrcformat.html#overview_xrcformat_sizers
but the meaning of it is found in wxSizer documentation (overview and
wxBoxSizer description).
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
b> I'm pretty new to wxWidgets, really, so forgive me for this "stupid"
b> question, but... basically... all that I need to tell it to do is to
b> let me split the parent window up into 2 parts - about 40% for left,
b> 60% for right (option = 2 and option = 3?)... then... simply use the
b> full height of the window, if needed, for both - and have vertical and
b> horizontal scrollbars in case things don't fit.
b>
b> Is this possible through .xrc files?
Yes, of course. Just create a horizontal wxBoxSizer with 2 items with the
proportions 2 and 3, just as you wrote, and wxEXPAND flag. You're probably
just making some mistake in your XML, it's easy to do unfortunately (XML
may have its advantages but being easily human-editable is not one of them).