Forum Migration Notice
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
[API] AddTabbed
Grrzzz
✭
in RobotStudio
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 367 IRC5
- 91 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
