Difference between revisions of "UI Control"
(→Changing the Style of a Control) |
(→Changing the Style of a Control) |
||
Line 39: | Line 39: | ||
For example:<br> | For example:<br> | ||
− | < | + | <source lang="realbasic">me.MyStyle.Arc = 99</source><br> |
Will change the border radius of the control to 99 pixels (a round corner). | Will change the border radius of the control to 99 pixels (a round corner). | ||
Revision as of 18:55, 23 February 2015
Contents
Desktop Framework
Each UI_Control (UI_Button, UI_Slider, UI_TextArea...) is a replacement of the native Controls included in the Xojo Desktop Framework.
Each control has the same Events, Methods and Properties from the native Controls.
Web Framework
Each UI_Control (UI_Button, UI_Slider, UI_TextArea...) is a subclass and replacement of the native WebControls included in the Xojo Web Framework.
Each control keeps the same Events, Methods and Properties from the native WebControls.
Both Frameworks
The only accessible addition for each UI_Control is the MyStyle property, that holds a structure for the Style to apply to the control.
Properties |
MyStyle |
Changing the Style of a Control
Changing the style of a single control can be done in the Open event of the Control.
For example:
me.MyStyle.Arc = 99
Will change the border radius of the control to 99 pixels (a round corner).
All other controls with the same type will keep the default style.
UIStyle Structure
Detailed information of UI_Control.UIStyle on a dedicated page.