RS 5.13, Documentbrowser
apox
✭✭
in RobotStudio
When adding new locations to the document browser with a certain filter (e.g. *.foo), is it possible to connect this filter to an Addin/Powerpack? The idea behind that is to select an item in the brwoser of type *.foo and perform some action (MyPowerPack.handle(*.foo)...) when double clicking on it.
0
Comments
-
Hi,
That is not really possible right now. Unless you can find a way to route the default Windows file handler for the type (which is activated when the item is double-clicked) back to RobotStudio and the Addin.
Look for API improvements in upcoming versions though!
Johannes Weiman
Software Engineer
ABB Robotics0 -
Is it possible to get acces to the document browser control (list view) and register an event (OnDoubleClick or something like that, depending on the control) on the list view (if it is a list view)?
0 -
You could try this, but there's no guarantee it will work in upcoming versions:
[code]Window docMgrWnd = UIEnvironment.Windows["DocumentManager"];
ListView listViewResults = docMgrWnd.Control.Controls["listViewResults"] as ListView;
...[/code]
Johannes Weiman
Software Engineer
ABB Robotics0 -
Got it - added mouse listener and connected document browser with Addin.
Thank you for the hint.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings