Graphical mode rendering (GUI mode)
What is the graphical mode (GUI)?
Genero supports the Graphical User Interface (GUI) mode to display application windows and forms with a real graphical look and feel, for desktop workstation, web browsers and mobile front-end platforms.
The graphical mode supports additional options such as native or Universal Rendering mode, and modern or traditional mode, to adapt to the needs of your application.
Enabling the graphical mode
In order to use the graphical mode, the FGLGUI environment variable can be set to 1.
However, graphical mode is the default with Genero. The FGLGUI environment variable is usally set to 0 (zero) to run the application in text mode.
Defining the target front-end
In graphical mode, the application forms are displayed on the front-end workstation identified with the FGLSERVER environment variable.
If this variable is not defined, the runtime system (fglrun) assumes that the front-end executes on the same computer.
Graphical mode options
When using the Graphical mode, the default is the Native rendering: front-ends use native platform GUI objects (windows and widgets) to render application forms.
To unify front-end display, use the Universal Rendering mode and get the same HTML-based rendering on all sort of Genero front-ends.
To simplify migration from text mode to graphical mode with legacy applications, Genero supports the Traditional GUI mode option to render all application windows in a single front-end GUI window.
Checking for graphical mode in programs
In the program code, use the ui.Interface.getFrontEndName()
method to query for the front-end type.
When this method return a value different from "console"
, the program executes
in graphical mode.