Le mer, mai 16, 2001, � 12:42:38 -0400, Sergei Tsarev a �crit:
>
> Hello all,
>
> I'm looking at using Dia as a near real-time network visulazition tool. I
> would like to add a callback function to Object that would get called at
> regular clock intervals. The function could then update any necessary
> object properties, possibly redraw the object, etc.
>
> Any suggestions for the "proper" place to insert this logic into Dia?
If the objects use the standard properties interface, you don't really need
a new callback ; have a timer handler get the events, and apply them through
the property interface to the objects.[*] Presto ! You may have to call
ddisplay_add_updat() on the modified objects' rects, and a ddisplay_flush() to
have the window repainted the next time there's nothing better to do.
-- Cyrille
[*] In fact, that'd also work when these objects use older or specific
interfaces, your timer handler would just need to know how to specifically
talk to these.
--
Grumpf.