|
Purpose Change the screen or menu layout dynamically While a single optimized screen layout is often sufficient, dynamically varied layouts can be helpful in certain applications. |
|
Solution Implement the different layouts in their own include files. Using a GuiXT status variable whose content is part of the include name, you control which layout should be active. Example 1: Dynamic screen layout We design the simplified data entry of a new customer. As the required information differs for domestic, European and international customers, we offer the user a dropdown box to specify the customer's region and then design the screen to suit this type of customer: the right set of entry fields, appropriate maximum field length, default values and specific search help. We use a status variable V[customertype] which can be set to "dom" for "domestic", "eur" for "european" or "gen" for "general" via a dropdown selection. To change the screen layout immediately when the user selects the customer type we use the "process=" option of the "dropdownlist" command: ![]() Depending on the customer type we then use an "include" to display the appropriate layout. ![]() GuiXT Script GuiXT
InputScript "return.txt"
Example 2: Dynamical menu
V[menustatus], which you change when the user clicks on one of the navigation buttons. Then include the right menu part using a dynamic include name, similar to Example 1: include "easy_access_menu.&V[menustatus].txt" |
|
Components |