Stacked windows

The Genero Browser Client (GBC) user interface provides a mechanism for working with applications that use stacked windows. To present this feature, we are providing you with this demonstration.

Before you begin

Start the standalone dispatcher from the command line using httpdispatch.

$ httpdispatch
  • Launch the Genero Workplace Window to ensure an environment suitable for Genero commands.

Open the demos application in your browser by entering the URL: http://localhost:6394/ua/r/gwc-demo.

Stacked windows demonstration

This demonstration provides you with the steps to explore working with stacked windows in GBC, using the Demos application.

Imagine an application's window stack is composed of several windows, W1, W2, ..., Wn. The GBC only displays the window at the top of the stack - the current window. The other windows are not displayed, but you can access them from the GBC navigation panel (side bar).

In the Topic tree of the demo directory, navigate to User Interface >> UI Basics>> Windows. Double-click on the demo CurrentWindow1 in the right-hand panel. The window at the top of the stack (Window w3) is displayed.

The CurrentWindow1 demo application

The sidebar or navigation panel is updated with the CurrentWindow1 application tree, which has the following links to windows in the stack:

  • demo
    • Demos
  • CurrentWindow1
    • screen
    • Window w1
    • Window w2
    • Window w3

To set an active window, click on one of the Test menu buttons (w1, w2, w3, or screen). The selected window is made current and brought to the top of the stack. The Is current field displays "YES" for the current window, and the window name is displayed in the application title bar. The window name is highlighted in the GBC navigation panel.

In the sidebar panel, click on one of the links in the CurrentWindow1 tree to set the focus to another window in the stack. Although you can switch to windows other than the current window in the CurrentWindow1 stack, their functions are disabled and their menus invisible. In this example, you only have one current window in the stack.

  • If the selected window is the current window, the Is current field value is "YES" and the Test menu panel is displayed.
  • If the selected window is not the current window, the Is current field value is "NO" and the Test menu panel is not displayed.