Search found 5 matches

by freudi74
Tue Feb 11, 2020 8:25 am
Forum: C++ Development
Topic: wxConfig and access from multiple threads/processes
Replies: 2
Views: 527

wxConfig and access from multiple threads/processes

I haven't found any information in the documentation whether wxConfig and more specifically wxFileConfig is save to use in concurrent access situations, especially when the same config file is accessed by multiple processes . I assume concurrent read()s should be OK, but what about write()s? What ab...
by freudi74
Fri Aug 30, 2019 12:53 pm
Forum: Component Writing
Topic: wxSpinCtrl(Double)-like wxGrid Cell Editor
Replies: 2
Views: 15551

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: 498

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...
by freudi74
Fri Aug 30, 2019 9:25 am
Forum: C++ Development
Topic: wxGrid one-click-edit
Replies: 1
Views: 498

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: 15551

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...