From: Stephen Kellett Date: 2005-09-14T20:16:43+09:00 Subject: TkDialog question Hi Folks. I have a TkDialog that I just want to display and then get the answer from it. I was wondering if it was possible to do this without deriving from the class. Its a simple dialog box with a Yes/No question. ret = TkDialog.new('title'=>'Confirm Exit', 'message'=>'Are you sure you want to exit?', 'buttons'=>['Yes', 'No'], 'default'=>1, 'bitmap'=>'question') How do I get the answer? Did the user press Yes or No? I've tried to find the answer to this by searching all the ruby examples on my machine and using Google. I'm either looking for the wrong thing, looking in the wrong place, whatever I can't work out how to do this. Hoping someone can help me. Stephen -- Stephen Kellett Object Media Limited http://www.objmedia.demon.co.uk/software.html Computer Consultancy, Software Development Windows C++, Java, Assembler, Performance Analysis, Troubleshooting