MOUSEHANDLED(PaintType)


Description :
 
MOUSEHANDLED(PaintType) Method. If this method is called in the mouseclick Event handler then GoDB does not execute any further processing.

if PaintType=0 then MOUSEHANDLED is ignored
if PaintType=1 then Event Bubling is cancelled and the browser is repainted.
if PaintType=2 then Event Bubling is cancelled and the browser is NOT repainted.

NOTE: As this event can occur many times the screen is not updated automatically so call UPDATE method at the end of the event handler if there are any display related functions in the function.

See Also: Form_MouseClick
See Also: Form_MouseUp
See Also: Form_MouseMove
See Also: Form_RMouseClick
See Also: Form_RMouseUp
See Also: Form_DblClick

You can also use SetAutoPaint(0) to disable GoDB's Default Painting routines.

See Also :  SetAutoPaint


Example :

sub Form_MouseClick
    print "Screen Position"
    print getmousex(0),getmousey(0)
    print "Page Position"
    print getmousex(1),getmousey(1)
    MOUSEHANDLED(1)
endsub

Sub Form_Mouseclick(x,y)
    print "x position " + x
    print "y position " + y
    MOUSEHANDLED(1)
End Sub