GtkRadioMenuItem Constructor

GtkRadioMenuItem Constructor

GtkRadioMenuItem ( GtkRadioMenuItem group , string label);

The first GtkRadioMenuItem in a group should have the first parameter set to null. This 'group leader' is not attached to anything; there is not at present such a thing as a GtkGroup widget of any kind.

All subsequent GtkRadioMenuItem widgets belonging to the same group should have the variable representing that group leader as the first parameter.

It is possible to mix different types of menu item within a GtkMenu.

In the following code snippet, Open is the group leader and Save and Print the other options belonging to the group. Note that Exit is not a part of that group, although it is part of the same menu.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.