AVEVA Community
Site
Search
User
Site
Search
User
AVEVA World
PDMS in Your Language
PDMS на русском
C# в PDMS v12sp4
Forums
Resources
Mentions
Sub-Groups
Tags
More
Cancel
New
Replies
6 replies
Subscribers
1 subscriber
Views
12 views
Users
0 members are here
Options
Share
More
Cancel
Related
C# в PDMS v12sp4
Valdemar Teish
over 15 years ago
Parents
Igor Besedin
over 15 years ago
[QUOTE=VladVillain;35952]To Mr. ibes
Please, repeat Your advice in somewhat like Cyrilic encoding. text is unreadable.
Its strange. I'll write in english.
If you have create simple button in menu, then set up an event handler for it like this:
btn.ToolClick += new EventHandler(btn_ToolClick);
where btn_ToolClick is a function calls your addin.
For example, full code of my Addin::Start() implementation:
MenuTool menu = (MenuTool)app.MenuBar.Tools["Aveva.MyCompany.MenuTool"];
if (menu == null)
menu = app.MenuBar.Tools.AddMenuTool("Aveva.MyCompany.MenuTool", "Addins", null);
ButtonTool btn = menu.Tools.AddButtonTool("Aveva.MyCompany.SomeAddin.Button", "Some Addin", null);
btn.ToolClick += new EventHandler(btn_ToolClick);
SendCEEvent.s_OnEvent += new PDMSNewCEHandler(SendCEEvent_s_OnEvent);
This is for 11.6 version.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Igor Besedin
over 15 years ago
[QUOTE=VladVillain;35952]To Mr. ibes
Please, repeat Your advice in somewhat like Cyrilic encoding. text is unreadable.
Its strange. I'll write in english.
If you have create simple button in menu, then set up an event handler for it like this:
btn.ToolClick += new EventHandler(btn_ToolClick);
where btn_ToolClick is a function calls your addin.
For example, full code of my Addin::Start() implementation:
MenuTool menu = (MenuTool)app.MenuBar.Tools["Aveva.MyCompany.MenuTool"];
if (menu == null)
menu = app.MenuBar.Tools.AddMenuTool("Aveva.MyCompany.MenuTool", "Addins", null);
ButtonTool btn = menu.Tools.AddButtonTool("Aveva.MyCompany.SomeAddin.Button", "Some Addin", null);
btn.ToolClick += new EventHandler(btn_ToolClick);
SendCEEvent.s_OnEvent += new PDMSNewCEHandler(SendCEEvent_s_OnEvent);
This is for 11.6 version.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data