[API] AddTabbed
Options
Hi,
I am having a problem with the AddTabbed Method found in UIEnvironment.Windows .
How do I have to use the 2nd parameter and for what?
All I want to do is adding a new tab in the main tab selection.
This is what I came up with so far.
ToolWindow tw = new ToolWindow();
tw.Caption = "MyTabbedToolwindow";
System.Windows.Forms.Button b = new System.Windows.Forms.Button();
b.Text = "ClickMe";
tw.Control = b;
UIEnvironment.Windows.AddTabbed(tw, tw2);
So what or where is tw2?!
I am having a problem with the AddTabbed Method found in UIEnvironment.Windows .
How do I have to use the 2nd parameter and for what?
All I want to do is adding a new tab in the main tab selection.
This is what I came up with so far.
ToolWindow tw = new ToolWindow();
tw.Caption = "MyTabbedToolwindow";
System.Windows.Forms.Button b = new System.Windows.Forms.Button();
b.Text = "ClickMe";
tw.Control = b;
UIEnvironment.Windows.AddTabbed(tw, tw2);
So what or where is tw2?!
0
Comments
-
Hi,
The referenceWindow parameter is needed to specify the tab group to which you want to add the window. To add a tab beside the object browser, you should do like this:
UIEnvironment.Windows.AddTabbed(tw,
UIEnvironment.Windows["ObjectBrowser"] as ToolWindow);
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings