Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Bindevent - click not working
Message
From
24/05/2016 19:24:25
 
 
To
24/05/2016 19:05:48
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01636754
Message ID:
01636756
Views:
68
then use mousedown instead click event.
Bindevent (FTCOMVY.bok2.cbotao1, "mousedown", oHandler, "Build") 

procedure build
LPARAMETERS nButton, nShift, nXCoord, nYCoord
try in your code and give the feed back.

update: this is two codes where bindevent click and mousedown work as expected
1-
PUBLIC oHandler
oHandler=NEWOBJECT("myhandler")
BINDEVENT(_SCREEN,"click",oHandler,"my")

DEFINE CLASS myhandler AS Session
   PROCEDURE my
messagebox("a click is occured")     
   RETURN
ENDDEFINE
2-
PUBLIC oHandler
oHandler=NEWOBJECT("myhandler")
BINDEVENT(_SCREEN,"mousedown",oHandler,"my")

DEFINE CLASS myhandler AS Session
   PROCEDURE my
LPARAMETERS nButton, nShift, nXCoord, nYCoord
messagebox("a mousedown is occured at x="+trans(nxCoord)+"  y="+trans(nYcoord))     
   RETURN
ENDDEFINE
can also use the flags option
BINDEVENT(oEventSource, cEvent, oEventHandler, cDelegate [, nFlags])
see :
Help bindevent()
Another question:
Looking to your code i see you create a timer (enabled=.T. and interval=1.......1 millisecond ??)
your timer begin to work and certainly focus all resources...is it normal ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform