Hi friends I am from Delphi/Lazarus world. Trying my hands on fxruby. I have made a FXMainWindow for user verification. Once the user is verified and clicks Button (OK) i need to close the current FXMain window and Start a new Main window. Presently, I am modifying the pig.rb example to suit my needs. I use dbd-mysql to connect to remote database. The password verification part works fine. Is it possible to kill the existing FXMain form and create a new one dynamically? Or can I remove all the widgets in the current form and add next set of widgets dynamically ? Please suggest to me the best methods. regards Nataraj ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
> Hi friends > > I am from Delphi/Lazarus world. Trying my hands on fxruby. > > I have made a FXMainWindow for user verification. Once the user is > verified and clicks Button (OK) i need to close the current FXMain > window and Start a new Main window.So it is a some form of log-in? I have done something like this a while back, I used a dialog box for user authentication and let access to the main window when it succeeded... I can send you working example when I get back home today (no access there from here)... Vlad Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
You can hide the main window, after opening the new one. This way if you ever want to pull it up again, you will be able to. On Thu, Sep 4, 2008 at 4:09 AM, Vladimir Konrad <v.konrad at lse.ac.uk> wrote:> > Hi friends > > > > I am from Delphi/Lazarus world. Trying my hands on fxruby. > > > > I have made a FXMainWindow for user verification. Once the user is > > verified and clicks Button (OK) i need to close the current FXMain > > window and Start a new Main window. > > So it is a some form of log-in? > > I have done something like this a while back, I used a dialog box for user > authentication and > let access to the main window when it succeeded... > > I can send you working example when I get back home today (no access there > from here)... > > Vlad > > Please access the attached hyperlink for an important electronic > communications disclaimer: > http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080904/49a64be8/attachment.html>
One possible implementation of log-in attached. Hope this helps, 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/20080904/5a8f8201/attachment.bin>