07-11-2015, 01:31 AM
Thanks for your help. I have solved my question with some tricks.
It will be nice to see your posted code in a new QM version... :wink:
Macro Macro1488
It will be nice to see your posted code in a new QM version... :wink:
Macro Macro1488
;(...)
,case WM_INITDIALOG
,SetTimer hDlg 1 1000 0
;(...)
,case WM_TIMER
,int cid=id(3 hDlg)
,POINT p; xm(p cid 1) ;;get mouse position into p.x and p.y
,,;out "%i %i %i %i" xm ym p.x p.y
,if p.x>5 and p.x<699 and p.y>24 and p.y<103
,,;out "[]%i %i" p.x p.y
,,int x=p.x/100
,,int y=(p.y-24)/16
,,str s1=g_c.Cell(y x)
,,ShowTooltip s1 1 xm ym-20