bm495 Windows

Dialogs


 

bm540         create window

bm541         create window without closing possibility

 

The create window and create window without closing possibility elements serve to create a new dialog window. These elements will return the window identification number, by means of which window references will be done later (e.g. on deleting a window). At the same time the new window is set as an active element, with the aid of which following operations will be executed. If no new window is established, then the dialog elements will be created in the basic window, which will automatically switch off the graphic mode after creating the first element. The newly created window is settable as invisible. It is advisable to first create the window dialog elements, to set their position and dimensions, to switch on their visibility, and finally to switch on the window visibility.

 

bm542         window has border

bm543         window has caption

 

The window has border element determines, whether a frame will be displayed around a window or an element, selected by the element identification number . The window has caption element determines, whether a caption will be displayed on the window upper border. For dialog elements a thickened inner frame will be used instead of the caption. If the window's or element's caption is on, but their frame is off, a thin frame will be used.

 

bm544         always on top

 

The always on top element decides, whether the window that is selected by the element identification number will always be displayed at the top, overlapping all other windows, even if it is not active (it has no input focus).

 

bm545         window is resizable

 

The window is resizable element enables the window to be resizable. It is a logic variable, which can both be read and entered. Only the main program window is resizable as default.

 

bm546         window may be closed

 

The window may be closed allows to disable the window to be closed by the user (by clicking on the cross in the right upper corner of the window or by the Alt+F4 key pressing). The element is a logic variable. By setting it to YES the window may be closed (default state). By resetting it to NO the closing is disabled. If the user tries to close the window, the YES flag is returned by reading of this element and the program can carry out operations needed, as prompting to save the file and only after that program termination. The flag of close request is automatically reset by reading of it.

 

bm547         window is maximized

bm548         window is minimized

 

The window is maximized and window is minimized elements are logic variables designated for both reading and writing. They determine the maximized/minimized state of the window.

 

With combination of the window has border , window has caption and window is resizable elements eight different states can be set:

 

Dialog Window:

Border        Caption        Resize        -->        Border        Caption        Resize        Minim.        Maxim.

no        no        no                no        no        no        no        no

YES        no        no                3D        no        no        no        no

no        YES        no                thin        YES        no        no        no

YES        YES        no                3D        YES        no        YES        no

no        no        YES                no        no        no        no        no

YES        no        YES                3D        no        YES        no        no

no        YES        YES                thin        YES        no        YES        YES

YES        YES        YES                3D        YES        YES        YES        YES

 

Dialog Element:

Border        Caption        Resize        -->        Border

no        no        no                none

YES        no        no                3D lowered

no        YES        no                thin 3D lowered

YES        YES        no                3D raised and lowered

no        no        YES                thin line

YES        no        YES                thin line and 3D lowered

no        YES        YES                3D raised

YES        YES        YES                3D double lowered