To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
Function Field is a field which has a button displayed to its right. This button has a default image () that can be changed by the Image attribute. The button should be used to trigger an event. A classic example would be a field where the e-mail address of a contact is stored. The button could be used to start the e-mail client to send an e-mail to this e-mail address. Another example would be a field to keep the website of a company. When the user clicks the button, the browser window opens with the corresponding URL.
Comment
DataType
Required
TabIndex
toolTip
Events (onInvoke)
<functionfield fieldType="FORM_ONLY" fieldTable="formonly" enable="true" visible="true" identifier="f1" text="" comment="ssd">
<griditemlocation gridWidth="1" gridHeight="1" gridY="2" gridX="0"/>
<imageid uri="qx://application/icon22/edit_w2_01_022.ico"/>
<oninvoke type="actioneventhandler" actionName="actEvent"/>
</functionfield>
Select the FunctionField button from the widget palette and place it to the required location on the form.
Setting background fill color for and forecolor for the function field in active and inactive state:
<ElementFilter ElementName="FunctionFieldAbs">
<StyleSheet>
<WithPseudoClassFilter PseudoClassName="Active">
<StyleSheet>
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>Background</PropertyName>
<PropertyName>FillColor</PropertyName>
</PropertyPath>
<PropertyValue type="SystemColor" SystemColorName="LightGreen" />
</SetProperty>
</DoStyleAction>
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>ForeColor</PropertyName>
</PropertyPath>
<PropertyValue type="SystemColor" SystemColorName="Red" />
</SetProperty>
</DoStyleAction>
</StyleSheet>
</WithPseudoClassFilter>
<WithPseudoClassFilter PseudoClassName="Inactive">
<StyleSheet>
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>Background</PropertyName>
<PropertyName>FillColor</PropertyName>
</PropertyPath>
<PropertyValue type="SystemColor" SystemColorName="LightRed" />
</SetProperty>
</DoStyleAction>
<DoStyleAction>
<SetProperty>
<PropertyPath>
<PropertyName>ForeColor</PropertyName>
</PropertyPath>
<PropertyValue type="SystemColor" SystemColorName="White" />
</SetProperty>
</DoStyleAction>
</StyleSheet>
</WithPseudoClassFilter>
</StyleSheet>
</ElementFilter>
Project: theme-demo3-2-2014
th_aroot_el_functionField_pseudo_active_inactive