gtk and gdk

This is a discussion on gtk and gdk within the Linux Programming forums, part of the Platform Specific Boards category; I have a drawing area and I want to have a signal function that is called when a user hits ...

  1. #1
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926

    gtk and gdk

    I have a drawing area and I want to have a signal function that is called when a user hits a some keys. However the focus is never on the drawing area it's on the buttons. I don't know how to create a drawing area that when a user presses key it calls a function? Can anyone help me with this.
    Thanks
    Michael

  2. #2
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    sounds like basic signals from the gui processing, maybe make sure your drawing area CAN focus, it may have that attribute off.

    though, availablity of the public attributes on the widgets is dependent on the development tools being used. Glade is the best for creaing a gui with gdk/gtk.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21