[Gambas-user] Gui question = menu shadow left on screen after click

richard terry rterry at ...1946...
Mon Jan 10 02:08:32 CET 2011


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




More information about the User mailing list