Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
icons in PopupMenu
#2
No, but you can escape : and ", and use DynamicMenu.

Code:
Copy      Help
str titles exe
ARRAY(int) handles
GetWindowList &titles "" 1|2|4 0 0 handles
ARRAY(str) arr = titles

for(int'i 0 arr.len)
,int hwnd=handles[i]
,exe.getwinexe(hwnd 1)
,
,arr[i].escape(1) ;;escape "
,arr[i].findreplace(":" "[91]58]") ;;escape :
,arr[i].formata(" : * %s" exe)
,
titles=arr

int p=DynamicMenu(titles "" 1)
if(p) act handles[p-1]

;This is not perfect. Should get icon with GetWindowIcon instead, but icon handles are not supported in menus (until QM 2.1.8).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)