Registers a cControl_EventHandler class instance as a WebButton deselector.
A reference to a valid cControl_WebButton class instance.
||Required / Optional
||Reference to a valid cControl_EventHandler object which sinks the MouseMove event.
The Register method takes the current
reference from it's parent
and register's the Highlight_Button's
callback function with the handler object's OnMouseMove event.
This method allows controls which may be immediately adjacent to one or several controls to be used to "unhighlight" the button actively highlighted. It is not necessary to register a cControlWebButton's event handler as a deselector for another
WebButton. This is managed internally in the cControl
This example registers a form's section control event handler as the Deselector for a series of WebButtons. This code takes place at the
The net effect is that any WebButton referenced by the
property of the cControl_WebButtons stored in the collection will be "unhighlighted" should the mouse move over the Detail
section control of the "myForm" form.
Dim wb as cControl_WebButton
Dim sectionHandler as cControl_EventHandler_Section
Set sectionHandler = EventHandlers.GetOrCreate([myForm].Section("Detail")
For Each wb in myWebButtonsCollection