MButton

From RadPHP XE2 Documentation

Jump to: navigation, search

MButton is a button user can click.

Contents

Usage

Custom Icons

You can use a custom icon for your MButton component. Set the Icon property to the path to the icon file, which must be placed in the project folder. You can also specify a position for the icon inside the button, and even decide whether the icon should have a shadow (default) or not.

Your icon will be displayed in a circle with a 18-pixel diameter, 36-pixel in case of HD devices.

Properties

MButton Properties

Name Values Description
Icon

path Relative path to an icon inside the project folder.
ParentColor

boolean Whether or not Color property value should be inherited from MButton’s parent component.
ParentFont

boolean Whether or not Font property value should be inherited from MButton’s parent component.
ParentShowHint

boolean Whether or not ShowHint property value should be inherited from MButton’s parent component.

Mobile Components Common Properties

These properties are shared by all mobile components:

Name Values Description
Enhancement

enFull
enStructure
None
Determines component visual appearance. enFull will use JQuery Mobile default style, or a MobileTheme if there is one associated to the component. You will need to set this property to enStructure if you want it to use the style you defined through component properties other than MobileTheme, such as Font or Color. enNone will leave the component with its default appearance (no style at all).
Personal tools