On Wed, 2005-11-23 at 11:21 -0500, Aaron Howard wrote:
> I seem to recall some discussion of this before but I can't seem to
> locate it now...
>=20
> Is there a way to change the default behavior of a cell in a grid so
> that instead of getting a text box for editing the contents of said cell
> upon entering it, a drop-down combo box could be used instead?
Okay, scratch that. I figured it out. Now I have another question (or
two):
How can I make it not take three clicks to select from the list? And
for that matter, how can I make it a typedown list?
Here's some sample code:
liGrid =3D self.components.LineItemGrid
liGrid.CreateGrid(1, 6)=20
liGrid.SetCellEditor(0, 1, wx.grid.GridCellChoiceEditor(['A','B','C']))
When I do this, I get a combo box with choices A, B, and C in the cell.
But it is ridiculously unintuitive how to get it to take my entry. Say
I tab into the field, then I have to press a key (or click with the
mouse) to get the field active, then I have to press either alt-down or
click the down button to display the list and either use the up and down
arrow keys or use the mouse to select from the combo box.
Any ideas on how I can make it a type down combo box?
-Aaron
--=20
Aaron Howard <arc...@gm...>
|