Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS FMX UI Pack
Styling a FireMonkey control in a mobile application
Styling a FireMonkey control in a mobile application
The ability to style is missing in a mobile application and thus styling options for a TMS Pack for FireMonkey component will also be unvailable when trying to style directly inside a mobile application. Fortunately there is a workaround for this.
To style a FireMonkey component, drop the component on the form in a new FireMonkey HD application and right-click the component. A context menu will be available with an "edit custom style" and "edit default style" option. Choose the correct option and then copy the StyleBook and component to the form in a new FireMonkey Mobile application. Select the copied StyleBook in the StyleBook property of the form.
If you do not wish to change this style from a StyleBook or you wish to dynamically style the component. You can always implement the OnApplyStyleLookup method which will contain the correct references to the various elements/parts of the component found and named in the StyleBook.