LW full-screen windows

Most users prefer running applications in a full-screen mode for easier handling and navigation.

There are three ways to make run your application full-screen - by STYLE attribute, via a user theme, by specifying the last attribute for fgl_window_open().

When you specify a file name, be careful with its case.

UNIX is case-sensitive, so it will treat files which names come in different cases as separate files.

STYLE attribute

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.

User theme

Lycia Theme Designer allows 4gl developers to use special classes to adjust application layout depending on the browser, lycia_firefox for applications run via Firefox, lycia_opera for Opera, lycia_safari for Safari, and lycia_ie for Internet Explorer.

 

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_firefox">

        <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 via Firefox. However, this will have no effect if the application is executed via Safari or Internet Explorer.

fgl_window_open()

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", FALSE)

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.