Hi all.
I open today an old project (early 2010) where I used NSStatusItemMBS. So when 
I populate the menu I used NSMenuMBS, that gives me an error (this method does 
not exists on call menu.CreateMenu). What can replace the .createmenu method?

Here my code where I create the menu with a little circle (red or green) and a 
text taken from a database (by PopolaMenuItem).

Thanks a lot for help!

  MenuStatusItem=new NSStatusItemMBS
  
  if MenuStatusItem.CreateMenu then
    dim n As NSImageMBS
    
    prosso=New Picture(16,16,32)
    prosso.Graphics.ForeColor=&cFF0000
    prosso.Graphics.FillOval 0,0,16,16
    
    pverde=New Picture(16,16,32)
    pverde.Graphics.ForeColor=&c00FF00
    pverde.Graphics.FillOval 0,0,16,16
    
    pmask=New Picture(16,16,32)
    pmask.Graphics.ForeColor=&c000000
    pmask.Graphics.FillOval 0,0,16,16
    
    n=new NSImageMBS(prosso,pverde)
    
    MenuStatusItem.title=""
    MenuStatusItem.HighlightMode=true
    MenuStatusItem.image=PrelevaImmagineApplicazione
    
    menu=new NSMenuMBS
    
    'poi aggiungere gli elementi in base ai lavori in corso nel database
    PopolaMenuItem
    
    'popolare l'elenco clienti per la ricerca
    RiempiElenchiPopup("ragsoc,id","clienti","id>=0 order by 
ragsoc",MenuCliente)
    
    call menu.CreateMenu
    
  end if

------

Sergio Tamborini
Brescia
http://www.system-i.it





_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to