View Single Post
  #4  
Old 02-09-2012
Stephan Seidel's Avatar
Stephan Seidel Stephan Seidel is offline
Flexsim User
 
Join Date: Mar 2009
Location: Dresden, Germany
Posts: 36
Downloads: 20
Uploads: 0
Thanks: 26
Thanked 22 Times in 8 Posts
Rep Power: 149
Stephan Seidel will become famous soon enough
Thumbs up Closing a custom GUI per button

Many thanks, Carsten. Especially for pointing out the documentation on closeview. Apparently I was so disappointed by it, that I didnt even bother to look.

Just to post the complete code it in case someone is looking for it:

Code:
closeview(ownerview(c));
destroyobject(ownerview(c));
Cheers,
Stephan
__________________
---
You can't have it both ways.
Reply With Quote
The Following User Says Thank You to Stephan Seidel For This Useful Post:
Carsten Seehafer (02-09-2012)