Prev: VO2837 : Linear Owner Alignment
Next: XML
From: JD on 17 Feb 2010 10:55 I tried it but didn't work! I created a menu called "test" with item "file" / "activate" that have a toolbar. Placed your code. Even so when click menu item "activate" it doesn't execute the related method. That only happens when the menu is visible. IT WORK ======= oShellWindow:Menu := Test{} //show menu and toolbar //menu item "activate": the event IS discharged correctly. NOT WORK ======== oShellWindow:Toolbar := oTest:Toolbar //show only toolbar (OK!) //menu item "activate" corresponding button: the event is NOT discharged (called)! Regards. JD
From: €®!k /!$$€® on 17 Feb 2010 11:13 JD ( it is common to use our names here..) Use the MenuCommand event, that is called fine. Erik "JD" <jdhora(a)ig.com.br> schreef in bericht news:68a956ec-96e6-473b-a4cb-420fdb4e53c0(a)i39g2000yqm.googlegroups.com... > I tried it but didn't work! > > I created a menu called "test" with item "file" / "activate" that have > a toolbar. Placed your code. Even so when click menu item "activate" > it doesn't execute the related method. That only happens when the menu > is visible. > > IT WORK > ======= > oShellWindow:Menu := Test{} //show menu and toolbar //menu item > "activate": the event IS discharged correctly. > > NOT WORK > ======== > oShellWindow:Toolbar := oTest:Toolbar //show only toolbar (OK!) //menu > item "activate" corresponding button: the event is NOT discharged > (called)! > > > Regards. > > JD
From: JD on 17 Feb 2010 13:47 Thank you. Now, sorry because I never did it this way, I do not know how to implement it to get the id of the menu item that was selected to call the correspondent method. Can you help me? Regards. Jairo.
From: Massimo Bighelli on 17 Feb 2010 14:28 JD in the Init() of your shellwindow... SELF:ContextMenu := MyMenu{} // first item = dummy SELF:toolbar := SELF:contextmenu:toolbar Massimo Bighelli ARCA Sistemi S.r.l. www.arcasistemi.it www.arcasistemi.eu "JD" <jdhora(a)ig.com.br> ha scritto nel messaggio news:eb5359df-486d-4c87-953a-7ec9ef679ad4(a)d2g2000yqa.googlegroups.com... > Thank you. Now, sorry because I never did it this way, I do not know > how to implement it to get the id of the menu item that was selected > to call the correspondent method. Can you help me? > > Regards. > > Jairo.
From: JD on 17 Feb 2010 15:38
Thank you!!! Now it worked perfectly. |