Non-default wxGrid implementation

27 views
Skip to first unread message

Igor Korot

unread,
Apr 27, 2025, 2:54:03 PM4/27/25
to wx-u...@googlegroups.com
Hi, ALL,
By default wxGrid behaves as spreadsheet, meaning that if I have a cell/row/column with non default editor/renderer it is not displayed after creation.

In order to display it one has to click the appropriate cell twice.

Is there an easy way to display such editor/enderer after creation without user interference?

Thank you.

Vadim Zeitlin

unread,
Apr 28, 2025, 5:04:51 PM4/28/25
to wx-u...@googlegroups.com
On Sun, 27 Apr 2025 13:53:47 -0500 Igor Korot wrote:

IK> Hi, ALL,
IK> By default wxGrid behaves as spreadsheet, meaning that if I have a
IK> cell/row/column with non default editor/renderer it is not displayed after
IK> creation.
IK>
IK> In order to display it one has to click the appropriate cell twice.
IK>
IK> Is there an easy way to display such editor/enderer after creation without
IK> user interference?

You use "editor/renderer" as if they were interchangeable, but they are
completely different. Notably, renderers are always used, so your question
doesn't make sense for them. Editors are indeed shown on double click by
default, but wxGrid supports "activatable editors", which are the ones
deriving from wxGridCellActivatableEditor, such as MyGridStarEditor in the
grid sample, and which don't need to be shown before being used. I guess
this is what you need.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/

Igor Korot

unread,
Apr 28, 2025, 5:23:07 PM4/28/25
to wx-u...@googlegroups.com
Thx, Vadim,

I'll look it up.
Reply all
Reply to author
Forward
0 new messages