GTK programming help

This is a discussion on GTK programming help within the C++ Programming forums, part of the General Programming Boards category; I am trying to do a project for a GTK programming class and I have a question . I created ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    GTK programming help

    I am trying to do a project for a GTK programming class and I have a question .

    I created the checkbox already in the code so I have a function that is only supposed to check if a check box is checked or not. The commands are nested in a void function and is read as follows:

    If(gtk_check_button_set_active(gtk_check_button_ne w_with_label(check1), TRUE))
    { ...do something}


    Also, how can I check and uncheck a checkbox within my code?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You mean something like this? Google is your friend.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    4

    Re

    Thanks for the link. I searched google and was not able to find a straight forward site like this.

    I now have more or less the same problem but with Radio butttons.

    I created my buttons seperately and grouped each set within a box. I am now unable to use commands such as gtk.toggle_button.get_active or .get_active in general.

    I tried using gtk_toggle_button_get_active also but this did not work.

    What command should I use for this. I did search Google extensively but has no luck.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MinGW32 and gtk setup in Windows
    By Joelito in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 02-05-2009, 11:39 AM
  2. Replies: 1
    Last Post: 09-22-2008, 05:49 AM
  3. GTK troubles...again...
    By cornholio in forum Linux Programming
    Replies: 4
    Last Post: 01-16-2006, 01:37 AM
  4. Replies: 1
    Last Post: 10-24-2005, 07:35 AM
  5. QT or GTK
    By mart_man00 in forum Linux Programming
    Replies: 4
    Last Post: 03-24-2003, 10:42 PM

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