Events Handled


The table below lists the events that WshDialog recognizes. When the CallBack property of a form is enabled, these events will be passed to the user's
ClickHandler routine.

-

for form-level events special keywords are passed.

-

for default control events only the name of the control is passed

-

for non-default control events a compound value, containing the name of the control, the name of the event and (optional) additional data is passed, separated by null characters


Source

Events handled

Cause(s)

Event raised

Form :

Activate

Occurs when the form becomes active by using the Show or SetFocus methods

*ACTIVATE

Unload

Occurs when the user closes the form, either by clicking the closebox, choosing Close from the control menu or pressing the ALT+F4 keys

*CLOSE

F1 - F12

Occurs when the user releases one of the function keys F1 through F12

*F1 - *F12

Controls :

Calendar

AfterUpdate

Occurs after the user moves to a new date in the control (using either the mouse or the keyboard) and after the calendar has been refreshed

Controlname

Checkbox

Click

Clicking the control with the left mouse button

Controlname

Pressing an ACCESS KEY for the control

Pressing the SPACEBAR when the control has the focus

Changing the control's Value property from code

CommandButton

Click

Clicking the control with the left mouse button

Controlname

Pressing an ACCESS KEY for the control

Pressing the SPACEBAR when the control has the focus

Pressing ENTER when the control has the focus

Pressing ESC for a control with its Cancel property set to True

Setting the control's Value property to True from code

DirListBox

Change

Occurs when the user changes the selected directory, by double-clicking a new directory or when you change the Path property through code.

Controlname

Click

Occurs when the user changes the selected directory by clicking a new directory

KeyUp

Occurs when a key is released when the DirListBox has the focus. The following keys are handled: Arrow keys, Home, End, PageUp, PageDown and Enter key

DriveListBox

Change

Occurs when the user selects a new drive or when you change the Drive property setting through code

Controlname

DropDownList

Click

Selecting an item with the left mouse button or the UP, DOWN, PGUP or PGDN keys

Controlname

DropDownCombo

Click

Selecting an item with the left mouse button or the UP, DOWN, PGUP or PGDN keys

Controlname

FileListBox

DblClick

Occurs when the user double-clicks a file in the control

Controlname

Frame

-

   

Image

Click

Clicking the image with the left or right mouse button

Controlname

Label

-

   

ListBox

Click

Selecting an item with the left mouse button, the arrow keys or the HOME, END, PGUP or PGDN keys

Controlname

ListView

DblClick

Occurs when a listitem is double-clicked

Controlname

Enter

Occurs when the ENTER key is pressed

Backspace

Occurs when the BACKSPACE key is pressed

Controlname
+ "KeyBack"

Delete

Occurs when the DELETE key is pressed

Controlname
+ "KeyDelete"

Insert

Occurs when the INSERT key is pressed

Controlname
+ "KeyInsert"

AfterLabelEdit

Occurs after a user finishes editing the label of a listitem

Controlname + Eventname + New label

ItemCheck

Occurs when a listitem's checkbox is either selected or cleared (and the CheckBoxes property of the Listview is enabled)

Controlname + Eventname + Listitem index

ItemClick

Occurs when a listitem is clicked

MaskedEditBox

-

 

 

OptionButton

Click

Clicking the control with the left mouse button

Controlname

Pressing an ACCESS KEY for the control

Pressing the SPACEBAR when the control has the focus

Setting the control's Value property to True from code

ProgressBar

-

   

Slider

Change

Occurs when the slider is moved with either the left mouse button, the keyboard or through code

Controlname

Tabs

-

   

TextBox

-

   

MultiLineTextBox

-

   

Timer

Timer

Occurs when the interval has passed

Controlname

UpDown

Change

Occurs whenever the Value property changes. The Value property can change through code, by clicking the arrow buttons, or by changing the value in a buddy control when the SyncBuddy property is True

Controlname