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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 338 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings