PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Characteristics of non-maximized windows
  • Title bar
  • Close/OK button
  • Type of border
  • Move by the background
  • Size at opening
  • Resizable
  • Buttons of a non-maximized window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
A non-maximized window can be resized by the user and it can occupy a section of the screen only.
Most of the time, the non-maximized windows are used to display information messages.
Several options can be configured in the wizard for window creation:
Reminder: To start the wizard for window creation, select "File .. New .. Window .. Wizard for creating blank windows"). Reminder: To start the wizard for window creation, click among the quick access buttons:
  • Click "Window" in the wheel that is displayed. The window for creating a new element is displayed: click "Window" then "Window".
  • Select "Wizard".
  • Validate. The wizard for window creation starts.
Characteristics of non-maximized windows

Title bar

The status bar is used to display the title of the window as well as the Close and OK buttons for example.
If the title bar is not visible, the window must contain the buttons used to close the window.
The presence of the title bar can be configured at any time in the "Style" tab of the window description.

Close/OK button

The "Close or OK" button is used to close or validate the current window.
This button is associated with a specific process of the window: "Before closing with the OK/Close button". This process is run before the closing code of window.
Operating mode of the Close button:
  • running the "Before closing with OK/Close button" process.
  • running the code of the "Cancel" button found in the window (if this button exists). If the window contains no "Cancel" button, the window is closed.
Operating mode of the OK button:
  • running the "Before closing with OK/Close button" process.
  • running the code of the "Validate" button found in the window (if this button exists). If the window contains no "Validate" button, the window is closed.
Note: the window will not be closed if the "Before closing with the OK/Close button" process calls ReturnToCapture.
The type of the button can be changed at any time:
  • in the editor, via the popup menu of the button:
  • in the editor, in the "Style" tab of the window description
  • by programming (WinSystemButton)

Type of border

In a non-maximized window, the type of window border is visible. You can choose a simple border, a double border or no border.
These parameters can be modified at any time in the "Style" tab of the window description.
Note: If no border is selected, the window will have no title bar and no OK/Close button. It will not be resizable.

Move by the background

If this option is selected, the user will be able to move the window by clicking the window and by keeping the mouse button (or the stylus) down during the move.

Size at opening

This parameter corresponds to the size of the window when it is displayed.
The size of the window (as well as its position) can be modified at any time in the "Details" tab of the window description.

Resizable

A non-maximized window can be resized. To do so, a double border must be used (otherwise, the window cannot be resized).
You can configure whether a window can be resized in the "Style" tab of the window description. You also have the ability to define the maximum and minimum widths of the window.
Buttons of a non-maximized window
When a non-maximized window is created by the wizard for window creation, you have the ability to choose the buttons that will be inserted into this window.
In this case, the selected buttons (and their code) are automatically added into the window. Depending on the type of the requested button, the click code of the button returns a boolean (Yes for the "OK" button, No for the "Abandon" or "Cancel" button). This return value can be processed by Open. For example:
IF Open(WIN_Non_Max) = Yes THEN Info("You've clicked OK")
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment