Hi, I am new to the world of FXRuby. Please bear with me if I ask a stupid question. I am working on an application that requires user to login to use the software. Basically I wrote a simple code to create a second window that will ask for Login. After successful login the window is closed. The problem is, user can click on the original window without compliting the login. I want the original window to be there but not accesseble till user has completed the login. I could not find any clue in the documentation. Please help! -- Regards Soumya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081002/0bfa928a/attachment.html>
You need to use a dialog box, or some other widget that runs modally. This will prevent interaction with any other windows. ________________________________ From: fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Soumyanath Chatterjee Sent: Thursday, October 02, 2008 12:05 PM To: fxruby-users at rubyforge.org Subject: [fxruby-users] Set active only one window Hi, I am new to the world of FXRuby. Please bear with me if I ask a stupid question. I am working on an application that requires user to login to use the software. Basically I wrote a simple code to create a second window that will ask for Login. After successful login the window is closed. The problem is, user can click on the original window without compliting the login. I want the original window to be there but not accesseble till user has completed the login. I could not find any clue in the documentation. Please help! -- Regards Soumya This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081002/e9dee63a/attachment-0001.html>
One possible way to do log-in attached... Vlad Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: login-example.rb Type: application/x-ruby Size: 4428 bytes Desc: not available URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081003/8d3b2614/attachment.bin>
Hi Vladimir, Thank you! This is just what I wanted. -- Regards Soumya ----- Original Message ---- From: Vladimir Konrad <v.konrad at lse.ac.uk> To: fxruby-users at rubyforge.org Sent: Friday, 3 October, 2008 15:21:15 Subject: Re: [fxruby-users] Set active only one window One possible way to do log-in attached... Vlad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20081004/232d37b4/attachment.html>