when I run the examples, I get menubars like this.
which is fine but doesnt get what I am trying to do. I have hacked the screenshot to show an example: see the blue cloud? that is what I am trying to put in my menubar (well an image like that). if there is an example that shows this that I missed, I apologize. thanks sb > Christian Schmitz <mailto:[email protected]> > November 4, 2012 4:30 AM > Am 04.11.2012 um 05:34 schrieb scott<[email protected]>: > >> All, >> >> tmpNSMIBS = new NSMenuItemMBS >> tmpNSIVMBS = new NSImageViewMBS( 0,0,unknown_16.Width, >> unknown_16.Height ) >> tmpNSIVMBS.Image = new NSImageMBS( unknown_16 ) >> tmpNSMIBS.view = tmpNSIVMBS >> app._MenuItemsStatic.Append tmpNSMIBS >> app._mbsmMain.addItem app._MenuItemsStatic( app._MenuItemsStatic.Ubound ) > > I think if you use a view, you should keep reference to RB view object. > When using a view, you draw yourself, so the default drawing of image is off. > >> version 2: >> tmpNSMIBS = new NSMenuItemMBS >> tmpNSMIBS.Enabled=true >> tmpNSMIBS.tag=203 >> tmpNSMIBS.Image= new NSImageMBS( unknown_16,unknown_16.Mask ) >> app._MenuItemsStatic.Append tmpNSMIBS >> app._mbsmMain.addItem app._MenuItemsStatic( app._MenuItemsStatic.Ubound ) > > > This should work. > > Does our Statusitem example work for you? > Not that we broke something. > > Greetings > Christian > _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
