Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.sao.ru/cats/~satr/GTK2/sec-checkbuttons.html
Дата изменения: Fri Jul 19 21:48:09 2002 Дата индексирования: Tue Oct 2 02:29:41 2012 Кодировка: Поисковые слова: http www.stsci.edu science goods |
Check buttons inherit many properties and functions from the the toggle buttons above, but look a little different. Rather than being buttons with text inside them, they are small squares with the text to the right of them. These are often used for toggling options on and off in applications.
The creation functions are similar to those of the normal button.
GtkWidget *gtk_check_button_new( void ); GtkWidget *gtk_check_button_new_with_label ( const gchar *label ); GtkWidget *gtk_check_button_new_with_mnemonic ( const gchar *label );
The gtk_check_button_new_with_label() function creates a check button with a label beside it.
Checking the state of the check button is identical to that of the toggle button.