Inheritance diagram for FormEvents:
Public Member Functions | |
OnCloseQuery ([in] IDispatch *Sender,[in] IDispatch *ResultPtr) | |
This event occurs when the user tries to close form. | |
OnClose ([in] IDispatch *Sender) | |
This event occurs when the form closes. | |
OnActiveControlChange ([in] IDispatch *Sender) | |
This event occurs when the active control changes. | |
OnHitTest ([in] IDispatch *Sender,[in] LONG x,[in] LONG y,[in] IDispatch *ResultPtr) | |
This event occurs when the form requires information about specified form point. | |
OnHint ([in] IDispatch *Sender,[in] IDispatch *Object) | |
This event occurs when the mouse pointer moves over the an menu item or toolbar button that associated with some Action object. | |
OnMinimize ([in] IDispatch *Sender,[in] IDispatch *ResultPtr) | |
This event occurs when the user tries to minimize the form. | |
OnMaximize ([in] IDispatch *Sender,[in] IDispatch *ResultPtr) | |
This event occurs when the user tries to maximize the form. | |
OnRestore ([in] IDispatch *Sender,[in] IDispatch *ResultPtr) | |
This event occurs when the user tries to restore the form. | |
OnCopyData ([in] IDispatch *Sender,[in] BSTR Data) | |
This event occurs when the form receives WM_COPYDATA message. | |
OnActivate ([in] IDispatch *Sender,[in] LONG Flags) | |
This event occurs when the form activated or deactivated. | |
OnEnterSizeMove ([in] IDispatch *Sender,[in] LONG Flags) | |
This event occur after the form enters the moving or sizing modal loop. | |
OnExitSizeMove ([in] IDispatch *Sender,[in] LONG Flags) | |
This event occur after the form exited the moving or sizing modal loop. |
OnActivate | ( | [in] IDispatch * | Sender, | |
[in] LONG | Flags | |||
) |
This event occurs when the form activated or deactivated.
Sender | Form. | |
Flags | This parameter can be a one of the following values: |
OnActiveControlChange | ( | [in] IDispatch * | Sender | ) |
This event occurs when the active control changes.
Sender | The control that raised the event. |
OnClose | ( | [in] IDispatch * | Sender | ) |
This event occurs when the form closes.
Sender | The control that raised the event. |
OnCloseQuery | ( | [in] IDispatch * | Sender, | |
[in] IDispatch * | ResultPtr | |||
) |
This event occurs when the user tries to close form.
Sender | The control that raised the event. |
ResultPtr | The Result object that can be used to return an value from the event handler. |
o = new ActiveXObject("Scripting.WindowSystemObject") o.EnableVisualStyles = true f = o.CreateForm(0,0,0,0) f.Text = "WSO" f.ClientWidth = 200 f.ClientHeight = 100 f.CenterControl() Button = f.CreateButton(120,70,75,25,"Close") Button.OnClick = CloseForm f.OnCloseQuery = OnCloseQuery f.Show() o.Run() function CloseForm(Sender) { f.Close() } function OnCloseQuery(Sender,ResultPtr) { if (f.MessageBox("Close form?","",o.Translate("MB_OKCANCEL | MB_ICONQUESTION")) != o.Translate("IDOK")) ResultPtr.Put(false) }
OnCopyData | ( | [in] IDispatch * | Sender, | |
[in] BSTR | Data | |||
) |
This event occurs when the form receives WM_COPYDATA message.
Sender | Form. | |
Data | Data. |
OnEnterSizeMove | ( | [in] IDispatch * | Sender, | |
[in] LONG | Flags | |||
) |
This event occur after the form enters the moving or sizing modal loop.
The form enters the moving or sizing modal loop when the user clicks the form's title bar or sizing border.
OnExitSizeMove | ( | [in] IDispatch * | Sender, | |
[in] LONG | Flags | |||
) |
This event occur after the form exited the moving or sizing modal loop.
OnHint | ( | [in] IDispatch * | Sender, | |
[in] IDispatch * | Object | |||
) |
OnHitTest | ( | [in] IDispatch * | Sender, | |
[in] LONG | x, | |||
[in] LONG | y, | |||
[in] IDispatch * | ResultPtr | |||
) |
This event occurs when the form requires information about specified form point.
Sender | The control that raised the event. | |
x | The x coordinate of the point. | |
y | The y coordinate of the point. | |
ResultPtr | The Result object that can be used to return an value from the event handler. The return value can be one of the following values: |
OnMaximize | ( | [in] IDispatch * | Sender, | |
[in] IDispatch * | ResultPtr | |||
) |
This event occurs when the user tries to maximize the form.
Sender | The control that raised the event. |
ResultPtr | The Result object that can be used to return an value from the event handler. |
OnMinimize | ( | [in] IDispatch * | Sender, | |
[in] IDispatch * | ResultPtr | |||
) |
This event occurs when the user tries to minimize the form.
Sender | The control that raised the event. |
ResultPtr | The Result object that can be used to return an value from the event handler. |
OnRestore | ( | [in] IDispatch * | Sender, | |
[in] IDispatch * | ResultPtr | |||
) |
This event occurs when the user tries to restore the form.
Sender | The control that raised the event. |
ResultPtr | The Result object that can be used to return an value from the event handler. |