Re: Expanding wxListCtrl and wxTreeCtrl to fill height of dialog
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 01 Sep 2023 13:33:47 -0700 Kenneth Porter wrote:
KP> I'm setting the proportion to 1 for my wxListCtrl/wxTreeCtrl with all other
KP> controls in their vertical sizer set to zero and they're not expanding
KP> vertically to fill the screen or dialog. Is there a trick to those controls?
No, they really should work just as any other window. In fact, you should
almost surely see the same problem if you replace them with a plain
wxWindow in your code.
KP> For the tree control, I want to expand the tree before showing the dialog
KP> and then set the size based on the expanded tree (or whatever will fit on
KP> the screen).
The best size computation for the tree might not work very precisely, but
whatever its initial size it should still expand if you give it a
proportion of 1.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZPNKbwAKCRAG6kHeT2we hgIvAJ9Z7C//8p4OS8jYw7TEPZPqcruLoACgnSojO91OyBUJWnreB7MsA5b96K0= =rQL+ -----END PGP SIGNATURE-----