Lisp HUG Maillist Archive

Update of output-pane

Hi all.
I'm working on a kind of dynamic geometry system which shows its results 
graphically in an output-pane and numerically in a ygrid table. With 
every mouse-move event I calculat ndw values, redraw the panel and 
update the values in the table and then I update the panel and table by:
    (gp:invalidate-rectangle *geo-panel*)
    (grid::invalidate-column  *object-table*  (last-array-elem 
(slot-value *object-table* 'grid::columns )))
However, the grid updates much more frequently than the panel.
My question: If gp:invalidate-rectangle does not not cause redrawing the 
window directly, how can I force it?

Reinhard


Re: Update of output-pane

Hello Reinhard,


| Hi all.
| I'm working on a kind of dynamic geometry system which shows its
| results graphically in an output-pane and numerically in a ygrid table.
| With every mouse-move event I calculat ndw values, redraw the panel and
| update the values in the table and then I update the panel and table by:
|     (gp:invalidate-rectangle *geo-panel*)
|     (grid::invalidate-column  *object-table*  (last-array-elem
| (slot-value *object-table* 'grid::columns )))
| However, the grid updates much more frequently than the panel.
| My question: If gp:invalidate-rectangle does not not cause redrawing the
| window directly, how can I force it?

Maybe I don't understand your question in full. Do you mean that calling

  (gp:invalidate-rectangle *geo-panel*)

alone leads to grid redraw?

This is only possible if your explicitly invoke grid invalidation functions
from some *geo-panel* drawing (sub)routine.
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru


Updated at: 2020-12-10 08:42 UTC