Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse Over r Display Mes or out
#1
Hi Gintaras and all,

Having a little trouble with this one. Need to have this func running continually, and
if mouse is over the rect
   display mes (be it mes, Mes, OSD, ect.)
if mouse not over rect anymore
   destroy mes ect.

The following code part before else statement works good with output, but
after the else no good.

Please any help, Thanks in advance.
Scott

Function FunctionOne25
Code:
Copy      Help
/ FunctionOne25 \

#region   __Description
;; Description of Function:
;; Want to be able to display a mes or output with coordinates,
;; when mouse pointer is over any part of specified rect and
;;  destroy mes or different output when mouse Not over rect.
#endregion

int w=win("$My QM$" "CabinetWClass")

;; Loop1
RECT r
SetRect &r 99 267 128 290 ;;coordinates in the client area of the window
if wait(0 -S "" w r 16)
,POINT p; xm(p w 1) ;;get mouse position into p.x and p.y
,out "[]Cursor coordinates are:[]%i %i" p.x p.y
else
,;wait(0 -S "" w r 16|0x400)
,xm(p w 1) ;;get mouse position into p.x and p.y
,out "[]Cursor coordinates now are:[]%i %i" p.x p.y
goto Loop1


Messages In This Thread
Mouse Over r Display Mes or out - by ScottF - 10-02-2020, 04:08 PM
RE: Mouse Over r Display Mes or out - by Kevin - 10-02-2020, 07:12 PM
RE: Mouse Over r Display Mes or out - by ScottF - 10-02-2020, 08:23 PM
RE: Mouse Over r Display Mes or out - by ScottF - 10-02-2020, 10:18 PM
RE: Mouse Over r Display Mes or out - by Kevin - 10-03-2020, 03:25 PM
RE: Mouse Over r Display Mes or out - by ScottF - 10-03-2020, 03:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)