I posted this in the SPoD forum but maybe this is a better place…
Anyway, the subject says it all. I have this wonderfull dialog which contains a table with all the subroutines defined in the current active source. When I double click on one of the names the source window jumps to the subroutine definition. So far so good, but I haven’t been able to figure out how to get this to work using the cursor keys and ENTER. There is no event related to using the enter key and you cannot use accelerator keys for selection in a table. Any ideas ? I am still a bit new to these kind of apps, so maybe I missing something obvious ?
Haven’t found a way so far, while you can navigate with the cursor keys within a table just fine
the ENTER key will not be sent to the table control, it will be reflected for either the default
button for the dialog or the one currently having the focus.
aha… your reaction did trigger something in my brain :
what if I set up a default button on the dialog which when “clicked” sends an event to the same dialog (is that possible, instead of sending it to another dialog?) which then would trigger the code to get the selected row from the table ? Would that work somehow ?
yes, that’s it!
I just created an eventhandler called “select” for the dialog and sent this event to the dialog when the button (with accelerator key ENTER) is clicked.
thanks for the “wake-up” hints, Wolfgang
Good stuff 8)
You are very welcome, glad I’ve at least been able to help indirectly