Event-handler for ToolWindow.Closed
Bernd
✭
in RobotStudio
Hi all,
I want to use an Event-handler to detect the closing of a ToolWindow.
See here an extract of my code:
[CODE]
public static void AddinMain()
{
(...)
this.tw = new ToolWindow("toolwindow");
this.tw.Closed += new EventHandler(toolwindow_close);
}
void toolwindow_close(object sender, EventArgs e)
{
Logger.AddMessage(new LogMessage("ToolWindow closed"));
}
[/CODE]
But it does not work at all, the event method is not even called, it seems that RS does not detect the closing of the toolWindow at all.
(I hope I am right to say 'Closing the ToolWindow' when I click on the X in the top-right corner. That is what I want to detect.)
Can anybody help me?
Thanky you!
Bernd2009-04-27 16:06:51 Can anybody help me?
Thanky you!
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