Clearcode
April 5th, 2001, 11:18 AM
We have a new OCX which greatly simplifies the business of subclassing a form to get at the extra events that the Visual basic designers left out. i.e.:
* ActiveApplicationChanged - Fired when a user switches away from, or in to your application
* LostCapture - Tells you when your application loses the keyboard focus
* KeyPressed - When any key is pressed..can even diosatinguish between left and right shift keys
* LowMemory - Fired when the system is running low on memory
* Move - When a form is moved (I'm surprised this wasn't included in VBs own form events)
* VerticalScroll - When a form's vertical scroll bar is acted upon
* HorizontalScroll - The same for the horizontal scrollbar
* WindowsSettingsChanged and WindowsINIChanged - To tell you that the user has changed a global system setting
* NonClientMouseMove, NonClientMouseDown, NonClientMouseUp, NonClientDblClick - Mouse events for the non client area of your form (the caption, menu, frame etc.)
* MinMaxSize - Set when windows is deciding what size to maximise or restore your form to...provides a classy way to restrict the sizes to which a form can be resized.
* MouseOverMenu - When the mouse moves over a menu...allows you to update a status bar according to which top level menu the mouse is tracking over and
* WindowMessageFired - Fired for all the other windows messages.
To use it:
private Sub Form_Load()
me.VBEventWindow1.ParentForm = me.Hwnd
End Sub
If this is of interest to you, the address is http://www.merrioncomputing.com/Download/index.htm
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
* ActiveApplicationChanged - Fired when a user switches away from, or in to your application
* LostCapture - Tells you when your application loses the keyboard focus
* KeyPressed - When any key is pressed..can even diosatinguish between left and right shift keys
* LowMemory - Fired when the system is running low on memory
* Move - When a form is moved (I'm surprised this wasn't included in VBs own form events)
* VerticalScroll - When a form's vertical scroll bar is acted upon
* HorizontalScroll - The same for the horizontal scrollbar
* WindowsSettingsChanged and WindowsINIChanged - To tell you that the user has changed a global system setting
* NonClientMouseMove, NonClientMouseDown, NonClientMouseUp, NonClientDblClick - Mouse events for the non client area of your form (the caption, menu, frame etc.)
* MinMaxSize - Set when windows is deciding what size to maximise or restore your form to...provides a classy way to restrict the sizes to which a form can be resized.
* MouseOverMenu - When the mouse moves over a menu...allows you to update a status bar according to which top level menu the mouse is tracking over and
* WindowMessageFired - Fired for all the other windows messages.
To use it:
private Sub Form_Load()
me.VBEventWindow1.ParentForm = me.Hwnd
End Sub
If this is of interest to you, the address is http://www.merrioncomputing.com/Download/index.htm
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com