gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] switchable layout managers


From: Horst Herb
Subject: Re: [Gnumed-devel] switchable layout managers
Date: Tue, 20 Jul 2004 16:31:40 +1000
User-agent: KMail/1.6.2

On Tue, 20 Jul 2004 14:25, Ian Haywood wrote:
> How do you direct an event to a specific plugin, for example: now you are
> being shown onscreen (for lazy-loading of backend data)?

1.) you save state within the widget (whether it has already been loaded with 
actualized data or not)
2.) you register this widget's EVT_PAINT function with the wxEvent handler 
This function 
        - checks whether data has been actualized already or not,
        - if not, it loads data and THEN continues with the OnPaint function.
That way, easy "lazy" data widgets and no flicker in screen update.

That simple. Widgets that are not visible don't really need to be refreshed 
with data (other than perhaps in the "OnIdle" loop). When they become 
visible, they will receive a wxPaintEvent, and things happen.

Horst




reply via email to

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