List Info

Thread: Re: Cant get panel in Splitter Window to increase width




Re: Cant get panel in Splitter Window to increase width
country flaguser name
United States
2007-10-15 20:06:53

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

__._,_.___
.

__,_._,___
Re: Re: Cant get panel in Splitter Window to increase width
country flaguser name
United Kingdom
2007-10-16 02:37:11

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

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )