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
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 30 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings