Hi krabourn,

Try using the OnMouseDown event in combination with the Form's MouseButton property - heres an example. Just right click anywhere on the form. Dont forget - the MouseX and MouseY position is in Client Coordinates (relative to the top left of the form, not the desktop) and Forms are specified using real coordinates (from the top left of the desktop) ...

code:
Break On

$Form = CreateObject("Kixtart.Form")
$Form.Size = 400, 400
$Form.Center
$Form.ForeColor = Blue
$Form.OnMouseDown = "OnFormMouseDown"

Function OnFormMouseDown
If $Form.MouseButton = 2 ; Right-click
$Form.PrintXY($Form.MouseX,$Form.MouseY,"Here I am")
EndIf
EndFunction

$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents())
Loop

Exit 1



[ 18. December 2002, 02:07: Message edited by: Shawn ]