New topic: Setting icon of menuItem at runtime
<http://forums.realsoftware.com/viewtopic.php?t=25440> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JeremK Post subject: Setting icon of menuItem at runtimePosted: Sun Nov 30, 2008 4:44 pm Joined: Thu Apr 10, 2008 6:03 am Posts: 58 The main window of my program has a menuBar (File, Edit, Options...). I would like to set the icon of one of the menu items at runtime. This is the code: Code:FileSave.Icon=NewPicture(16, 16, 32) FileSave.Icon.Graphics.DrawPicture(SaveFilesmall, 0, 0, 16, 16) FileSave.Icon.Mask(true).Graphics.DrawPicture(SaveFilesmall, 0, 0, 16, 16, 16) The problem is that the icon appears to be all white. When i "pause" the program in Realbasic to explore everything that is running, I can see the icon of the menuItem correctly in RealBasic, but not in my program. What is wrong? _________________ Current Project: VirtualDJ Skin Editor REALBasic 2008 R4 on Windows Vista. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
