> Benoît Minisini wrote: > > You enter the event loop once the Main() function is finished. Why do you > > want > > to display a form before? It's weird too! > > I want the form to display as soon as the program is run, basically. > > I have the Form_Open procedure immediately execute several procedures, > which takes about 20 seconds, but would like the form to show before the > procedures execute so the user knows the program has been run. GTK shows > the form as soon as I do FormMain.Show/WAIT 0.5, but QT doesn't show the > form until it has exited Form_Open. Here's the code: > > PUBLIC SUB Form_Open() > > ' General initialization. > > ' Show the main form. > FormMain.Show > WAIT 0.5 > > ' Create config directories. > IF Exist(User.Home & "/.Sanctimonia") = FALSE THEN MKDIR User.Home & > "/.Sanctimonia" > > ' Create temporary elevation files. > Elevation.Temp_File_Create > Tile.Temp_File_Create > > ' Update preview with old data from elevation file. > Preview.Refresh > > ' Load elevation template into preview cache (remove when finished > debugging). > Elevation.Template_Load("default.png") > > END > > I wonder if ultimately there is a way to better ensure consistency between > GTK and QT. I don't know how each is specifically implemented, but I've > noticed several discrepancies between the two along GAMBAS's development. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com > phone: (770) 853-6271
In revision #3077, for Gambas 3, gb.qt4 should now behave like gb.gtk when showing windows. And when you notice a difference between gb.qt(4) and gb.gtk, please tell me! It usually should be fixed, as the goal is to have the same behaviour in both components as much as possible. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user