hendra kusuma | 20 Jun 05:57
Picon

Ask : Single window & catch OnClose event

Dear all
I have 2 question here

I'm creating desktop application using wxruby and encounter some problem
I need my application to be able to open only one for each frame
is there any way to do this?
I tried to include singleton but then my frame lost its contact with its parent
(my frame class is inherited from WxFrame and I use initialize method to assign parent)

also, I need to catch OnClose event
how can I do that? I need to do something (delete temporary file) before the frame closed
code example will be appreciated :)

Thank you
--
Suka linux?
Kunjungi blog saya http://penguinroad.blogspot.com

_______________________________________________
wxruby-users mailing list
wxruby-users <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users

Gmane