[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Using windows95 buttons with gtk



    I wrote a simple text widget to use as a memo pad that I would like
to activate by pressing the windows95 keys on the keyboard.  I would
like to be able to press the windows key and have the widget show ,type
a message and press the windows key again to save and exit.  I have two
questions.  The first is do I use gtk_widget_show (GtkWidget *window)
on the first keypress and gtk_widget_hide(GtkWidget *window) on the
second keypress to put it in the background.   The second question is
not gtk related but I'll throw it in anyway.  How can you  read the
windows keys?  They have keycodes but no keysyms.   According to the
keyboard howto you cannot assign an unique keysym but there must be a
way to read  the keypress.

Thanks,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]