Jean-Pierre Martel
2004-02-26 04:40:50 UTC
I am building a Screen Saver in dBL. I would like the form to close as
soon as the user moves the mouse pointer. Unfortunately, the
onMouseMove() event fires as soon as the form opens, without any role
played by the end user.
Jean-Pierre Martel
=== A new dBASE Conference in Montréal, July 9th and 10th, 2004 ===
// Beginning of the onMouseMove Form
** END HEADER -- do not remove this line
//
// Generated on 25/02/04
//
parameter bModal
local f
f = new OMMForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class OMMForm of FORM
with (this)
onMouseMove = {;form.close()}
metric = 6 // Pixels
height = 334.0
left = 371.0
top = 0.0
width = 280.0
windowState = 2 // maximized
text = ""
endwith
this.RECTANGLE1 = new RECTANGLE(this)
with (this.RECTANGLE1)
onMouseMove = {;form.close()}
left = 29.0
top = 33.0
width = 214.0
height = 251.0
text = "Rectangle1"
endwith
endclass
// End of the onMouseMove Form
soon as the user moves the mouse pointer. Unfortunately, the
onMouseMove() event fires as soon as the form opens, without any role
played by the end user.
Jean-Pierre Martel
=== A new dBASE Conference in Montréal, July 9th and 10th, 2004 ===
// Beginning of the onMouseMove Form
** END HEADER -- do not remove this line
//
// Generated on 25/02/04
//
parameter bModal
local f
f = new OMMForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class OMMForm of FORM
with (this)
onMouseMove = {;form.close()}
metric = 6 // Pixels
height = 334.0
left = 371.0
top = 0.0
width = 280.0
windowState = 2 // maximized
text = ""
endwith
this.RECTANGLE1 = new RECTANGLE(this)
with (this.RECTANGLE1)
onMouseMove = {;form.close()}
left = 29.0
top = 33.0
width = 214.0
height = 251.0
text = "Rectangle1"
endwith
endclass
// End of the onMouseMove Form