Hi.
I use the combobox wxGrid. Unfortunately, at the opening of the grid does not show me the combobox on the screen.
I have to click the mouse in this field to display it.
The sample 2.9.4 is unfortunately the same problem. ( I run wxWidgets 2.9.4 // Windows 7 64 bit // CodeBlocks )
How this can be called without the use of mouse ?
I trayed Refresh but it not work.
code:
wxString choices[3]={wxT("TEST"), wxT("TEST2"), wxT("TEST3")}; // Make table strings
Grid1->SetCellEditor(0,0, new wxGridCellChoiceEditor(3, choices, false)); // Add this to Cell
Grid1->SetCellValue(wxT("TEST2"),0,0); // Set default value
Grid1->Refresh();
Any help please....
Thanks
wxGrid with combobox (Choice Editor) Topic is solved
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: wxGrid with combobox (Choice Editor)
Code: Select all
Grid1->SetGridCursor(0, 0);
Grid1->ShowCellEditControl();
And it only works for one control at a time, you can't have a cell editor open for multiple cells. What you actually want - embed any control in a wxGrid cell - is not supported AFAIK.
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: wxGrid with combobox (Choice Editor)
It's not work ;(
1. When I open my Dialog I have this : 2. I need this ( without click mouse ): Thanks
1. When I open my Dialog I have this : 2. I need this ( without click mouse ): Thanks
- Attachments
-
- image2.png (20.52 KiB) Viewed 4588 times
Re: wxGrid with combobox (Choice Editor)
Try this:
Code: Select all
Grid1->SetGridCursor(0, 0);
Grid1->EnableCellEditControl(true);
Grid1->ShowCellEditControl();
Use the source, Luke!
-
- Earned a small fee
- Posts: 20
- Joined: Sat Nov 26, 2011 3:15 pm
Re: wxGrid with combobox (Choice Editor)
WOW It is works.
Thank you very much.
Thank you very much.
-
- Experienced Solver
- Posts: 57
- Joined: Wed Feb 25, 2015 2:09 pm
- Location: Chennai, India
Re: wxGrid with combobox (Choice Editor)
How to get the event when combobox selection is changed?
Got a Problem???..No worry..Focus on Solution not on Problem