CommandBarControl.OnAction don't want to work
-
hi, i got this code -
CommandBar menuBar = applicationObject.CommandBars["MenuBar"]; CommandBarControl m_TemplatesControl = menuBar.Controls.Add(MsoControlType.msoControlPopup,1,"",System.Reflection.Missing.Value,true); m_TemplatesControl.Visible = true; m_TemplatesControl.OnAction = "MyFuncName";
the problem is that it never being called... i want that when i press the control it will call the function (it's popup and not button bcuz it got more commands inside it...) help please, Avi. -
hi, i got this code -
CommandBar menuBar = applicationObject.CommandBars["MenuBar"]; CommandBarControl m_TemplatesControl = menuBar.Controls.Add(MsoControlType.msoControlPopup,1,"",System.Reflection.Missing.Value,true); m_TemplatesControl.Visible = true; m_TemplatesControl.OnAction = "MyFuncName";
the problem is that it never being called... i want that when i press the control it will call the function (it's popup and not button bcuz it got more commands inside it...) help please, Avi.Wrong forum pal. :) -- My name in Katakana is ヨルゲン. My name in German is Jörgen. I blog too now[^]
-
Wrong forum pal. :) -- My name in Katakana is ヨルゲン. My name in German is Jörgen. I blog too now[^]
i don't think so, it's coded in ATL.