Version 6.3.8 for Windows
 —  Dialog Component Reference  —

Before-Open Event

This document covers the following topics:


Applies To

Dialog, Context Menu, Selection Box Control, Submenu Control.

Top of page

Description

For dialogs, this is a code section that is executed before the dialog is created and displayed. You can use it, for example, to load profile information from a database. This code section cannot be suppressed. Note that, as the dialog elements are created after this dialog event, all handle variables except #DLG$PARENT are still set to NULL-HANDLE at this time.

For context menus and submenus, the event occurs immediately before the menu is displayed, allowing menu items to be checked, disabled, etc., according to the current context. The event may be suppressed in this case.

For selection box controls, the event occurs immediately before the selection box list is opened, allowing dynamic (re-)initialisation of the list on demand. The event may be suppressed in this case.

Top of page