Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic menu location
#1
hello everyone,

Use the following code, It can display a dynamic pop-up menu, the location of the menu in the mouse pointer

I expect the menu to appear at the cursor type point, similar to AutoText Menu list style

Is this possible? Or is there any other function that can implement this feature?
Any suggestions are welcome. Thanks in advance


Macro Macro3
Trigger A2     Help - how to add the trigger to the macro
Code:
Copy      Help
_s=
;btext
;etext
;atext
;gtext
;htext

str d
ARRAY(str) a=_s
a.sort
for _i 1 a.len
,d.formata("%i %s :mes ''%s''[]" _i a[_i] a[_i])

d.trim
out d
DynamicMenu(d "" 1)
#2
d-" /pos text[]"
#3
@Gintaras

thanks a lot!

Macro Macro2
Trigger A1     Help - how to add the trigger to the macro
Code:
Copy      Help
_s=
;btext
;etext
;atext
;gtext
;htext

str d
ARRAY(str) a=_s
a.sort
for _i 1 a.len
,d.formata("%i %s :mes ''%s''[]" _i a[_i] a[_i])

d.trim
d-" /pos text[]"
out d
DynamicMenu(d "" 1)


Forum Jump:


Users browsing this thread: 1 Guest(s)