Difference between revisions of "CustomUI"
(→Applying the style at Application Launch) |
(→Using a Custom Style) |
||
Line 31: | Line 31: | ||
<source lang="realbasic">Call UI_Module.LoadFromXML(CustomStyle)</source> | <source lang="realbasic">Call UI_Module.LoadFromXML(CustomStyle)</source> | ||
+ | |||
+ | |||
+ | === Window Background === | ||
+ | If your custom style requires a special Window background color or picture, for each Window of your Xojo project, define the Background color or Window Backdrop. |
Revision as of 12:39, 30 June 2014
Using a Custom Style
As soon as you have created a custom style using the CustomUI Builder, you should have an XML file containing the style definition.
The easiest way to apply this style in your Xojo project is to drag & drop the XML file into your Xojo project.
Applying the style at Application Launch
In the Xojo Navigator select the App element
Then click on the "+" button to add a new code item, and select Event Handler
Xojo now displays the Add Event Handler window.
Select the Open event then click on OK
The App item now has an Open event handler in the Navigator:
Finally, copy and paste the following line of code to apply the style, assuming the XML file is named CustomStyle.xml:
Call UI_Module.LoadFromXML(CustomStyle)
Window Background
If your custom style requires a special Window background color or picture, for each Window of your Xojo project, define the Background color or Window Backdrop.