gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] IsVisible() solution


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] IsVisible() solution
Date: Mon, 26 Jul 2004 01:03:36 +0200
User-agent: Mutt/1.3.22.1i

> Regarding the lazy refreshing of Widgets, I was surprised that Karsten was 
> right, and IsShown() always returned tru.
> 
> The fix is:
> self._panel.GetUpdateRegion().IsEmpty()
> 
> This returns true if the Window is not visible, and false if it is visible
Ah ! Praise be to distributed problem solving. Will test this
right away.

> To ensure that Windows are notified even if they are visible at the time when 
> the OnPatientChanged message is dispatched (=no PAint event generated for 
> them), the OnPatientChanged callback must include:
> Refresh() as a method of the panel in question.
I take it Refresh() is what EVT_PAINT would've called were it
sent in the first place ?

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]