On Close Application Event Action

S

Simon Staton

Ok I am editting google sketchups base and I have built a ruby plugin
however I want an event to happen on close.

So when you open sketchup it opens somthing called a components panel
which I am doing with,

status = UI.show_inspector "Components"

But then I want it to Hide the Components panel when sketchup is closed.
any ideas anyone
 
S

Simon Staton

Simon said:
Ok I am editting google sketchups base and I have built a ruby plugin
however I want an event to happen on close.

So when you open sketchup it opens somthing called a components panel
which I am doing with,

status = UI.show_inspector "Components"

But then I want it to Hide the Components panel when sketchup is closed.
any ideas anyone

no ideas?
 
M

Marvin Gülker

Simon said:
no ideas?

I'm not sure if this does work with Google SketchUp, but doesn't at_exit
do the job? The block given to it is executed just prior to the
termination of the Ruby interpreter.

Marvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top