Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select selection : select bold menu
#1
Hi Gintaras, hi all

i use massively the routine to act with firefox tabs. i use one that gives a popupmenu from opened tabs names, and the currently selected tab has it's menu item bold.

I failed trying to autoselect it when menu pops.

Can you help?
Thanks
Function FirefoxUrlFromTabName
Code:
Copy      Help
type NAMEURL str'name str'url
ARRAY(NAMEURL) m
MenuPopup p
NAMEURL& r=m[]

for int'i 0 names.len
,if(empty(urls[i])) continue
,r.name=names[i]
,r.url=urls[i]
,p.AddItems(r.name i+1)
;;
p.SetBold(selectedTab+1)

int ii=p.Show-1; if(ii<0) ret
;int hwnd=win("" "#32768")
s=urls[ii]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)