Using the control
Drag the control from the Toolbox and drop it anywhere in the form. The place where you drop it within the form is not important, as the control has no visual behavior.
Example 1 - Using a GeneXus control
&eventlist.Add("mouseover") //&eventlist is a variable Character (collection), created automatically
JSEventHandler1.AttachedControl = TextBlockSample.InternalName //TextBlockSample is a textblock on the web form
&img.FromImage(email1) //&img is a bitmap variable on form and email1, email2 image objects
Case JSEventHandler1.EventType = "mouseover"
&img.FromImage(email1) //restore original image onmouseover
Case JSEventHandler1.EventType = "mouseout"
&img.FromImage(email2) //change image onmouseout
Example 2 - Using document as a attached control (character counter)
JSEventHandler1.AttachedControl = "document"
&Length= &string.Length() // Eg: &Length variable on the form
Other "document" Events:
- mousedown // user depresses the mouse button on this element
- mouseup //user releases the mouse button on this element
Most used "window" Events:
||Name of the control
Sets control's width
Sets control's height
EventList collection variable
The user control triggers an EventHandled event as described above.
To Install It
Please visit: Default Installation Instructions for User Controls.
Please send feedback to: email@example.com, firstname.lastname@example.org