Re: Placing controls in a wxGrid cell
Vadim Zeitlin <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 03 Oct 2024 11:13:56 -0700 Kenneth Porter wrote:
KP> I'm using a stack of wxGrids to display information about a manufacturing
KP> process and I'd like to put a button and custom indicator control in a
KP> cell. Is this possible? A web search suggests that I'd need to write a
KP> custom cell editor. Ideally I'd put a sizer or panel in a cell and add my
KP> controls to that.
Yes, this should work, a custom editor can use any kind of window,
including a panel containing whatever else. The limiting factor is that it
should fit into the grid cell, which can be relatively small, but you can,
of course, set the minimum cell size high enough.
Good luck,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZv/u4QAKCRAG6kHeT2we hlg1AJ9rJ0QYWFhEiOXSKfHtAdooo0N8hwCeJBrWIg5f1+CsJpBqsDiTr2HAa5k= =6PpG -----END PGP SIGNATURE-----