Difference between revisions of "Scout/Concepts/Button"
m (Category changed) |
(→Notes) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
{{note|TODO|Add a description}} | {{note|TODO|Add a description}} | ||
Scout propose different types of buttons: | Scout propose different types of buttons: | ||
+ | * DefaultButton | ||
+ | * {{ScoutLink|Concepts|ToggleButton|ToggleButton}} | ||
* {{ScoutLink|Concepts|RadioButton|RadioButton}} to be used in {{ScoutLink|Concepts|RadioButtonGroup|RadioButtonGroup}} | * {{ScoutLink|Concepts|RadioButton|RadioButton}} to be used in {{ScoutLink|Concepts|RadioButtonGroup|RadioButtonGroup}} | ||
− | * | + | * {{ScoutLink|Concepts|LinkButton|LinkButton}} |
− | + | ||
== Screenshot == | == Screenshot == | ||
− | {{ | + | {|{{BMTableStyle}} |
− | + | |-{{BMTHStyle}} | |
+ | ! Button | ||
+ | ! RAP | ||
+ | ! SWT | ||
+ | ! Swing | ||
+ | ! Swing Rayo | ||
+ | |- | ||
+ | | Button || [[Image:Scout_3.8_Button_RAP.png]] || [[Image:Scout_3.8_Button_SWT.png]] || [[Image:Scout_3.8_Button_Swing.png]] || [[Image:Scout_3.8_Button_Swing_Rayo.png]] | ||
+ | |- | ||
+ | | {{ScoutLink|Concepts|ToggleButton|ToggleButton}} || [[Image:Scout_3.8_ToggleButton_RAP.png]] || [[Image:Scout_3.8_ToggleButton_SWT.png]] || [[Image:Scout_3.8_ToggleButton_Swing.png]] || [[Image:Scout_3.8_ToggleButton_Swing_Rayo.png]] | ||
+ | |- | ||
+ | | {{ScoutLink|Concepts|LinkButton|LinkButton}} || [[Image:Scout_3.8_LinkButton_RAP.png]] || [[Image:Scout_3.8_LinkButton_SWT.png]] || [[Image:Scout_3.8_LinkButton_Swing.png]] || [[Image:Scout_3.8_LinkButton_Swing_Rayo.png]] | ||
+ | |- | ||
+ | | {{ScoutLink|Concepts|RadioButton|RadioButton}} || [[Image:Scout_3.8_RadioButton_RAP.png]] || [[Image:Scout_3.8_RadioButton_SWT.png]] || [[Image:Scout_3.8_RadioButton_Swing.png]] || [[Image:Scout_3.8_RadioButton_Swing_Rayo.png]] | ||
+ | |- | ||
+ | |} | ||
== Properties == | == Properties == | ||
Line 28: | Line 44: | ||
See also the {{ScoutLink|Concepts|Field|Field}} page for the events that all fields have in common. | See also the {{ScoutLink|Concepts|Field|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 | ||
+ | |||
+ | [[File:Scout button fill parent.PNG]] | ||
== See Also == | == See Also == | ||
* {{ScoutLink|Concepts|Field|Field}} | * {{ScoutLink|Concepts|Field|Field}} |
Latest revision as of 07:19, 9 September 2014
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