From: Aaron H. <arc...@gm...> - 2004-12-22 17:32:56
|
Anybody... I have an app I'm developing using PythonCard. On my form, I have a grid that I'd like to allow the user to select a row and delete it. I thought I'd just capture a keyPress event and delete the row when the user presses a certain key...but I can't capture a keyPress event on a grid. I get the showEditor and hideEditor events. And I see from simpleGrid.py that there's a event.GetControl() to return the text edit control but how then do I capture a keyPress event on it? The way I envision this working is the user clicks on row label(s) to rangeSelect, then presses the Delete key to delete the row(s). But I can't figure out how to capture the keyPress on the grid. Alternatively, I would like to create a context menu so the user can select the row, then right click to have a menu pop up with a delete option. Can anybody point me towards some information that will help me accomplish either method? -Aaron |