GtkCheckButton

Gamma/GTK: Using Gamma™ with GTK, Version 0.9
Prev |  | Next

# `GtkCheckButton`

`GtkCheckButton` -- a clickable label with a small toggle button beside it.

## Synopsis

    class GtkCheckButton GtkToggleButton
    {
    }

## Parent Classes

`GtkObject`<-- `GtkWidget`<-- `GtkContainer`<-- `GtkBin`<-- `GtkButton`<-- `GtkToggleButton`<--GtkCheckButton

## Child Classes

`GtkRadioButton`

## Description

When creating a GtkCheckButton (or its child, a GtkRadioButton) with `gtk_check_button_new_with_label` function, the label adheres to the check box, and if the widget is resized, the label stays in a left-justified position. If, on the other hand, the GtkCheckButton is created with a call to `.new()`, the label that is created "floats" in the middle of the area alotted to the button.

## Related Functions

`gtk_check_button_get_type` () -- replaces GTK_TYPE_CHECK_BUTTON
`gtk_check_button_new` ()
`gtk_check_button_new_with_label` (`label`)
`gtk_check_menu_item_get_type` () -- replaces GTK_TYPE_CHECK_MENU_ITEM
`gtk_check_menu_item_new` ()
`gtk_check_menu_item_new_with_label` (`label`)

## Example

See the Check Buttons example in the Example Code Appendix.

Prev | Home | Next
`GtkCalendar` | Up | `GtkCheckMenuItem`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.