Background Image is used to add images to elements' backgrounds.
Theme property filter XML code:
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>Background</PropertyName>
<PropertyName>BackgroundImage</PropertyName>
</PropertyPath>
<PropertyValue type="ResourceId"/>
</SetProperty>
</DoStyleAction>
CSS property code:
Default value:
not specified
Associated containers, widgets and theme elements:
Associated ui methods:
setBackgroundImage ↓
getBackgroundImage
Influence and behavior:
In Lycia Theme Designer, background images are added by specifying the path to the file (=image location):
Images are not added directly to the Background Image property but to the placeholder called New Resource ID. New Resource ID is an optional ui object (=ui.ResorceID) created to hold media resources that are applied to other ui elements.
Where are five ways to specify the image location:
for private (= included in the 4gl project) images – qx://application/ and qx://clienttemp/:
for built-in (=provided with Lycia) images – qx://embedded/ and qx://icon/:
At runtime, you can use ui method - <var>.SetBackgroundImage() - to change the background image of the element.
For this purpose, you must
4gl code sample |
MAIN |
default appearance (in the form) |
|
runtime appearance |
|