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 ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user