add to right click menu

scottMHA
Luton, United Kingdom ✭
Is it possible to add buttons to the right click menu below?


Tagged:
Comments
-
Did you found a solution scottMHA?
-
SierraWhiskeyHotel said:Did you found a solution scottMHA?
-
Use
CommandBarContextPopup ctxPopup = UIEnvironment.GetContextMenu(typeof(Part));
to access the menu.
Post edited by Johannes Weiman onJohannes Weiman
Software Engineer
RobotStudio Team, ABB Robotics -
Johannes Weiman said:Use
CommandBarContextPopup ctxPopup = UIEnvironment.GetContextMenu(typeof(Part));
to access the menu.Thank you for the answer. Now that I found some time to try this I failedVS doesn't know Part in context of the typeof expression. Do you have a short simple example how I can add buttons with my custom code to different menues?My goal is to add a button to the menues of paths, robtargets and workobjects. If you could show me an example of one of them I would really thank you for that.
Categories
- 10.1K All Categories
- 5.2K RobotStudio
- 323 UpFeed
- 8 Tutorials
- 1 RobotApps
- 273 PowerPacs
- 401 RobotStudio S4
- 1.7K Developer Tools
- 224 ScreenMaker
- 2.6K Robot Controller
- 206 IRC5
- 26 OmniCore
- 5 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 621 RAPID Programming
- 14 Wizard Easy Programming
- 98 Collaborative Robots
- 3 Job listings