Κουμπιά
Η gtkmm παρέχει τέσσερις βασικούς τύπους κουμπιών:
- Κουμπιά πίεσης
-
Gtk::Button. Standard buttons, usually marked with a label or picture. Pushing one triggers an action. See the Button section.
- Κουμπιά εναλλαγής
-
Gtk::ToggleButton. Unlike a normal Button, which springs back up, a ToggleButton stays down until you press it again. It might be useful as an on/off switch. See the ToggleButton section.
- Πλαίσια ελέγχου
-
Gtk::CheckButton. These act like ToggleButtons, but show their state in small squares, with their label at the side. They should be used in most situations which require an on/off setting. See the CheckButton section.
- Ραδιοπλήκτρα
-
Gtk::RadioButton. Named after the station selectors on old car radios, these buttons are used in groups for options which are mutually exclusive. Pressing one causes all the others in its group to turn off. They are similar to CheckBoxes (a small widget with a label at the side), but usually look different. See the RadioButton section.
Σημειώστε ότι, λόγω του συστήματος θεμάτων του GTK+, η εμφάνιση αυτών των γραφικών συστατικών θα ποικίλει. Στην περίπτωση των πλαισίων ελέγχου και ραδιοπλήκτρων, μπορεί να ποικίλουν σημαντικά.
- 5.1. Κουμπί
- 5.2. Κουμπί εναλλαγής
- 5.3. Κουμπί ελέγχου
- 5.4. Ραδιοπλήκτρο