wxGrid with combobox (Choice Editor)
Posted: Mon Dec 17, 2012 4:58 pm
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
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