> On Monday 10 January 2011 08:04:26 Benoît Minisini wrote: > > > Hi list > > > > > > Enclosed is picture - when I click on a menu item, and the code > > > attatched to a menu item > > > > "attached" how ? Where ? > > to explain further > > Menu may have several items: > -- display result > -- delete document > -- display audit trail > > etc. > > I've quickly made this code up to illustrate: > > public sub mnu_click() > > Select case last.tag > case "show result" > Webbrowser1.html = shtml > case "delete" > case "audit trail" > Audit_Trail_Show() > End select > end > > Public sub Audit_Trail_Show() > ... do lots of stuff in here > ... eg. > database queries > ... prepare html > .. show in webview etc > end > > Now, because say show result is really quick, the code executes, the spot > on the screen where the menu wndow was is removed by gambas or whatever > and no shadow appears > > The code under Audit_Trail_Show() is alot slower, and it seems to be > executed first completely, before gambas decides to refresh the screen > area where the menu was occupying, so that a gray area remains on the > screen as per the picture until the screen is refreshed, which seems to > take place after the Audit_Trail_Show occurs. > > Does that make more sense? > > rEgards > > Richard >
I can't reproduce that behaviour with Gambas 3. The GUI under the menu is correctly refreshed before the heavy process starts. Did you try with different widget styles? -- Benoît Minisini ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user