
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings