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.
Most users prefer running applications in a full-screen mode for easier handling and navigation.
There are three ways to make a mobile application run in full screen - by STYLE attribute, via a user theme, by specifying the last attribute for fgl_window_open().
To achieve the necessary result (to open window in full screen), add the style attribute to the 4gl code:
OPEN WINDOW w_name WITH FORM "form_name" ATTRIBUTE(BORDER, STYLE="full-screen")
where a STYLE attribute value full-screen stand for a class name that enables the full-screen mode.
Lycia Theme Designer allows 4gl developers to use special classes to adjust application layout, lycia_normal both for a desktop client or a browser (but not a mobile device) and lycia_desktop for the desktop client.
To achieve the necessary result (to open window in full screen), apply the full-screen class via the With class filter:
<StyleSheet xmlns="http://querix.com"> <ElementFilter ElementName="Application"> <StyleSheet> <WithClassFilter ClassName="lycia_desktop"> <StyleSheet> <ChildFilter> <StyleSheet> <ElementFilter ElementName="Window"> <StyleSheet> <DoStyleAction> <ApplyClass Name="full-screen" /> </DoStyleAction> </StyleSheet> </ElementFilter> </StyleSheet> </ChildFilter> </StyleSheet> </WithClassFilter> </StyleSheet> </ElementFilter> </StyleSheet> |
In the screenshot above, an application will open in full screen when run by LyciaDesktop.
To open the window as a flat one and in full screen, set the last parameter to FALSE:
CALL fgl_window_open("w_test", 2, 2, "form_name", FALSE)
To open the window as a bordered one, set the last parameter to TRUE:
CALL fgl_window_open("w_test", 2, 2, "form_name", TRUE)
Related articles:
ui.Interface.getFrontEndName()