[gtkada] Q re keypresses in a notebook.
briot at gnat.com
briot at gnat.com
Mon Mar 27 15:47:42 CEST 2000
Bobby D. Bryant writes:
> Part of a UI that I am working on is a notebook where the first page is
> a set of control widgets and the remaining pages are nothing but
> pixmaps. When a pixmap is on top I want to be able to manipulate it
> with keypresses.
>
> If I simply set up a keypress callback for each page, nothing happens
> when I press a key (unless it is an arrow key, CR, or TAB, in which case
> there is navigation among the page tabs.) [As an aside, I should say
> that the widgets in the control page work normally -- the only thing I
> have trouble trapping is the keypresses.]
This might be a case where you would need a binding to the GtkBinding widget
(which is in fact the underling implementation for the accelerators (You have
looked at gtk-accel_group, haven't you ?).
Unfortunately, GtkAda does not include this binding yet, this is probably one
of the two or three widgets/files from gtk+ we haven't worked on yet.
You should look at the C file, and see if you think this could help you.
I believe the binding is fairly easy to do.
Emmanuel
More information about the gtkada
mailing list