Scout/Concepts/Button
< Scout | Concepts
Revision as of 07:19, 9 September 2014 by Samuel.keusch.bsi-software.com (Talk | contribs) (→Notes)
Scout |
Wiki Home |
Website |
Download • Git |
Community |
Forums • Blog • Twitter • G+ |
Bugzilla |
Bugzilla |
Type of Field for buttons.
Description
Scout propose different types of buttons:
- DefaultButton
- ToggleButton
- RadioButton to be used in RadioButtonGroup
- LinkButton
Screenshot
Button | RAP | SWT | Swing | Swing Rayo |
---|---|---|---|---|
Button | ![]() |
![]() |
![]() |
![]() |
ToggleButton | ![]() |
![]() |
![]() |
![]() |
LinkButton | ![]() |
![]() |
![]() |
![]() |
RadioButton | ![]() |
![]() |
![]() |
![]() |
Properties
Defined with getConfiguredXxxxxx() methods.
See also the Field page for the properties that all fields have in common.
Events
Defined with execXxxxxx() methods.
See also the Field page for the events that all fields have in common.
Notes
Button should fill the available space of its parent
If you want a Button to fill the available space of its parent you need to:
- Set Grid Weight X to 1
- Set Grid Weight Y to 1
- Set Process Button to false (Important)
- Set Grid X to a valid value (0 for the leftmost column etc.)
- Set Grid X to a valid value (0 for the uppermost row etc.)
- Set Fill Horinzontal to true
- Set Fill Vertical to true