Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameters flag in the function do not work
#4
I think you're asking for the mouse to be center of the dialog if so, this should do it
 
Code:
Copy      Help
function str'T S [Mou] [flag]

MES m

if(flag&2)
,m.style="OCa"
if(flag&4)
,m.style="YNCa"

m.default='C'; m.timeout=S

if(Mou&1)
,m.x=xm
,m.y=ym
,mac "sub.centerOnMouse"

_i=mes(F"{T}" "tip" m)
ret _i

#sub centerOnMouse
int w=wait(0 WC win("tip" "#32770"))
int x y cx cy
GetWinXY w x y cx cy
mov x-(cx/2) y-(cy/2) w


Messages In This Thread
RE: Parameters flag in the function do not work - by Kevin - 01-05-2023, 04:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)