Controls the location where serial input from the terminal keyboard is received and displayed.
Syntax
WINDOW SET INPUT ON|OFF
Comments
The WINDOW SET INPUT command is set OFF by default.
When WINDOW SET INPUT is OFF, all serial input is received displayed in the application window (BACKSCREEN) regardless of which window is current. (The FORM INPUT and MENU INPUT commands operate in full-screen mode, and therefore are not affected by WINDOW SET INPUT.)
When WINDOW SET INPUT is ON, all line-by-line input occurs in the current window.
Makes the “next” saved form or display in the current Zim window the current form or display in the window.
Note: This command is invalid in Zim version 5 and above.
Syntax
FORM RESTORE
Comments
The FORM RESTORE command takes the “top” form or display from the “stack” of forms saved by FORM SAVE in the current window, making it the current form or display in the current window.
Note: The FORM RESTORE command must only be used with forms that are selected in text windows – never forms in graphical windows. Use of this command in Zim for Windows can cause system termination.
Controls automatic exposure of active windows on input requests.
Syntax
WINDOW SET INPUT EXPOSE ON|OFF
Comments
The WINDOW SET INPUT EXPOSE command is set ON by default.
When WINDOW SET INPUT EXPOSE is ON, the current window (if active) is always exposed when input is requested (by a FORM INPUT, INPUT, or MENU INPUT command). When WINDOW SET INPUT is set OFF, an input request does not cause an active window to be exposed.
An inactive current window is always automatically activated and exposed when the application user is given control of the interface, regardless of the WINDOW SET INPUT EXPOSE setting.
Display a user-defined cursor when the mouse hovers over a graphical formfield widget.
Syntax
FORM SET ( MOUSEPOINTER )|< formname> | |< formname>.< formfieldname>| | (< formnum>,< fieldnum>, |
Parameters
A string or an expression that evaluates to a string; the string must be a valid cursor file name.
< formname>
A formname
< formfieldname>
The name of a formfield
< formnum>
The form number
< fieldnum>
The field number
The subscript
Comments
A graphical formfield widget can have a user-defined cursor displayed when the mouse is hovering over it. Unlike predefined mouse cursors, user-defined mouse cursors are displayed even if the field is guarded. User-defined cursors can be assigned statically in the Screen Painter or dynamically using the MOUSEPOINTER attribute in the existing FORM SET command.
Display a user-defined cursor when the mouse hovers over a graphical formfield widget.
Syntax
WINDOW SET (MOUSEPOINTER ) []
Parameters
A string or an expression that evaluates to a string; the string must be a valid cursor file name.
An optional window name. The default is the current window.
Comments
Every graphical formfield widget can have a user-defined cursor displayed when the mouse is hovering over it. Unlike predefined mouse cursors, user defined mouse cursors are displayed even if the field is guarded. User-defined cursors can be assigned statically in the Screen Painter or dynamically using the MOUSEPOINTER attribute in the existing WINDOW SET command.
User interface objects are created using the New Object dialog. There are two ways to open this dialogue:
✓ From the Main Menu
✓ From the Menu Toobar
✓ From the Database Tab Page
From the Main Menu
✓ Select File then click on New.
From the Menu Tool Bar
✓ Click on the New icon in the Menu Tool Bar:
From the Database Tab Page
✓ Right-click on the type of object to be created and click on New:
✓ The New Object dialog will pop up.
The New Object Dialog
✓ If you are connected to multiple databases, make sure you select the correct database to which you want to add this new Zim object.
✓ Select the type of object that you wish to create.
✓ On the right side panel name the object you are creating, and select/define the dimensions if applicable.
✓ Click on the “OK” button to create the object.
Creating Database Objects
✓ From the “Database” tab, navigate to the type of object you wish to create, right click on the object, and select “New” from the right click menu.
✓ The default attributes of the newly-created database object will appear in the GUI Designer page tab ins, since such objects have no visual attributes.
✓ If necessary, Modify the default attributes of the Database object created
A tab control defines an area of the form in which several tab pages of the same size can coexist.
Tab pages within the same tab control are visually represented as a stacked group of frames, since at any time, only a single tab page can have be displayed and the input focus.
As such, the active tab page within the tab control appears on the top of the stack, above all other inactive tab pages.
Tab Controls and the Tab Pages are both container objects. Tab Control can only contain tab pages, but tab pages can contain all other form fields, including other tab controls.
Tab controls and tab pages represent an efficient and practical solution to reuse the same area of a form to present different form controls.
Advantages of Tab Controls and Tab Pages
✓ There are two main advantages of using tab controls and tab pages over previous solutions that combined other form fields:
✓ The operating system directly manages the process of selecting, displaying and hiding tab pages within a tab control. As such, there is no need for writing additional Zim code to implement the functionality of tab controls and tab pages;
✓ The logical hierarchical structure of a tab control object and its children tab pages is maintained visually in the graphical user interface (e.g., all children tab pages will be moved along when a tab control is moved within a form) and in the database structure (e.g,. the tab control appears as a parent node and its children tab pages as children nodes in the Tree View Tab Page).
Adding Tab Controls and Tab Pages to the User Interface
✓ In your current form, add a tab control object from the toolbox tab .
✓ From the toolbox tab, select the tab page object and add at least 1 tab page to the tab control.
✓ To add user interface objects to tab pages, in the painter workspace double click on the tab header for which tab you wish to add user interface objects to. The tab that has been selected is now the “current” tab page and form fields from the tool box tab can now be added to this tab page.