Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add tooltips to individual grid cells in a dialog
#3
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
Code:
Copy      Help
;(...)

,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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)