Click or drag to resize

DialogWindow Class

X#
Create a dialog window (also commonly referred to as a dialog box), which allows the application and end user to interact. This type of dialog can be modal or modeless (see the description below).
Inheritance Hierarchy
Object
  VObject
    EventContext
      Window
        DialogWindow
          ModelessDialog

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS DialogWindow INHERIT Window
Request Example View Source

The DialogWindow type exposes the following members.

Constructors
  NameDescription
Public methodDialogWindow
Construct a dialog window.
Top
Properties
  NameDescription
Public propertyResult
A numeric result code posted by the DialogWindow:EndDialog() method returned to the system when this dialog window was closed.
Top
Methods
  NameDescription
Public methodActivate
Provide a method that is invoked when this window is activated.
(Overrides Activate(Usual).)
Public methodActive
Public methodButtonClick
Provide a method that is invoked when a check box, push button, or radio button is clicked with the mouse.
(Overrides ButtonClick(Usual).)
Public methodChangeFont
Change the font used by this dialog window.
Public methodControlFocusChange
Provide a method that is invoked when the input focus changes to or from a control.
Public methodDeActivate
Provide a method that is invoked when this window is deactivated.
(Overrides DeActivate(Usual).)
Public methodDefault
Call the default windows procedure for a window and set the EventReturnValue for the object.
(Overrides Default(Usual).)
Public methodDestroy
Free memory resources allocated for a dialog window and its derived objects.
(Overrides Destroy.)
Public methodEditChange
Provide a method that is invoked when the text in an edit control is changed.
(Overrides EditChange(Usual).)
Public methodEditFocusChange
Provide a method that is invoked when the input focus changes to or from an edit control.
(Overrides EditFocusChange(Usual).)
Public methodCode exampleEndDialog
Remove this dialog window from view (passing control back to the routine which created the dialog window) and post a result code indicating how it was closed.
Public methodCode exampleExecModal
Allows the programmer greater control over Windows message handling in dialog windows.
Public methodListBoxClick
Provide a method that is invoked when an item in a list box owned by this dialog window is double-clicked.
(Overrides ListBoxClick(Usual).)
Public methodListBoxSelect
Provide a method that is invoked when an item in a list box owned by this window is clicked.
(Overrides ListBoxSelect(Usual).)
Public methodShow
Display this window.
(Overrides Show(Usual).)
Public methodShowModal
This is the worker method that shows the DialogWindow
Top
Remarks
Dialog windows are windows that present a collection of controls for user I/O. They also have a result code that indicates the result of the user-dialog interaction (for example, if the user pressed the OK or Cancel push button in the dialog). Most windowing systems distinguish between modal and modeless objects. Modal objects must be acknowledged before the current thread of execution can continue; conversely, modeless objects do not affect the current execution thread. When a dialog box is modal, a further distinction must be made between system modal and application modal objects. Objects that are system modal must be acknowledged before any execution in any windows created by any currently running application, including the Windows desktop, can continue. Application modal objects, on the other hand, must be acknowledged before any execution in just the current application can continue (that is, the user can access windows created by other applications). By default, a dialog window is application modal. However, it can be made modeless by assigning FALSE to the lModal flag in the DialogWindow:Init() method. You may also just want to create a modeless dialog box.
See Also

Reference