Search found 4 matches

by freudi74
Fri Aug 30, 2019 12:53 pm
Forum: Component Writing
Topic: wxSpinCtrl(Double)-like wxGrid Cell Editor
Replies: 2
Views: 383

Re: wxSpinCtrl(Double)-like wxGrid Cell Editor

Checking wxWidgets source code, I found that at least for integers I can get a wxSpinCtrl based editor when manually creating a wxGridCellNumberEditor with a range rather than using SetColFormatNumber(col) . Probably works as well if I set a range on individual cells using GetCellEditor(row,col)->Se...
by freudi74
Fri Aug 30, 2019 11:25 am
Forum: C++ Development
Topic: wxGrid one-click-edit
Replies: 1
Views: 49

Re: wxGrid one-click-edit

I found an easy solution that seems to somewhat work, except that there's confusion when selecting multiple cells: wxGrid* _grid = new wxGrid(...); ... _grid->Bind(wxEVT_GRID_CELL_LEFT_CLICK, [=](wxGridEvent & ev) { if (!_fiducials->IsReadOnly(ev.GetRow(), ev.GetCol())) { _grid->SetGridCursor(ev.Get...
by freudi74
Fri Aug 30, 2019 9:25 am
Forum: C++ Development
Topic: wxGrid one-click-edit
Replies: 1
Views: 49

wxGrid one-click-edit

Is there an easy way to make wxGrid "one-click-editable"?
At this time it needs two clicks (select, edit) to edit a value.
by freudi74
Fri Aug 30, 2019 9:20 am
Forum: Component Writing
Topic: wxSpinCtrl(Double)-like wxGrid Cell Editor
Replies: 2
Views: 383

wxSpinCtrl(Double)-like wxGrid Cell Editor

I'm looking for wxSpinCtrl and wxSpinCtrlDouble -like cell editors for a wxGrid. A renderer that shows disabled buttons would be nice, too, but is not required. I know there's always the option to write my own, but this seems so general purpose to me, that I can't believe that no one has created one...