[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] IsVisible() solution
From: |
Horst Herb |
Subject: |
[Gnumed-devel] IsVisible() solution |
Date: |
Mon, 26 Jul 2004 08:28:22 +1000 |
User-agent: |
KMail/1.6.2 |
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
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.
This seems to work.
Horst
- [Gnumed-devel] IsVisible() solution,
Horst Herb <=