Hi Mark,
To get a panel to size itself to its content, you need to give the panel
a sizer, and then place your items within that. The panel's "Fit to
content" property should also be true. You may need to set the splitter
size -1, -1 to allow it to resize. However, since the sash position also
comes into play, the splitter children may still not size to their
contents. DialogBlocks explicitly sets the sash position and I'm not
entirely sure whether _not_ setting it will allow the splitter window to
fit to its children (it's something that I haven't needed personally but
may be something that needs investigation).
If you wanted the splitter to fill its parent space, you need to click
on the Expand and Stretch factor buttons - also on the parent wxBoxSizer.
Regards,
Julian
easton.mark wrote:
> I have uploaded test.pjd. See diles section.
>
> I am not building it. I am using "Test" in DialogBlocks.
>
> The text is not in the db. I have the text entered directly in to the
> label. You can see that in the xrc xml.
>
> Thanks for your help,
> Mark
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
.