Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

GTK Widget question

Options
  • 27-05-2005 12:34pm
    #1
    Closed Accounts Posts: 680 ✭✭✭


    I have a GTK+ GUI which has a keyboard in it, with all 26 letters, and a screen/label on top. When i press a key on the key board, i want it to add to string for the display. How do i do this? I know i need to use String Concatenation, but its the actual callback function i'm having problems with.

    If i have a string, declared in the main
    char[] display = ""
    And a button
    g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (callback), (gpointer) "a");
    How do i add the letter "a" onto the end of the display string?


Advertisement