Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing ShowTooltip_Smart threads individually
#1
Suppose that a QM macro launches several different ShowTooltip_Smart balloons, existing simultaneously. I wonder whether there exists a way to select and close an individual balloon without affecting the others. I understand that :
(a) EndThread "ShowTooltip_Smart" closes all balloons at once.
(b) I can close a balloon individually by accessing, programmatically, its close (x) button if existing, for example

Function tempf04
Code:
Copy      Help
int w=wait(1 WV win("MYNOTES" "QM_toolbar"))
Acc a.Find(w "HELPBALLOON" "Balloon title*" "" 0x1001)
int x y cx cy
a.Location(x y cx cy)
mou x+cx-17 y+33
lef

but I consider it too empirical.


© EndThread with threadhandle may also be used, but I have difficulty in associating thread handle with a particular balloon.

Any advice is much appreciated. Many thanks in advance.
#2
My approach to close balloons, starting with the most recent

Function tempf12
Code:
Copy      Help
int n
n=EnumQmThreads(0 0 0 "ShowTooltip_Smart")
ARRAY(QMTHREAD) a.create(n)
EnumQmThreads(&a[0] n 0 "ShowTooltip_Smart")
_i=a[n-1].threadhandle
EndThread(0 _i 0)


Forum Jump:


Users browsing this thread: 1 Guest(s)