How to "refresh" label controls during iterative functions ?

Started by copter · 2009-05-28 19:39 UTC · 2 replies · SMF topic #776

Hello,
When I use an iterative function when a form is displayed I not able to "refresh" a label control  between 2 SetCaption.

For example:
(repeat 10 (myfunc) (dcl_Control_SetCaption Label1 (itoa (setq nb (1+ nb)))))
I attached one screen copy of the label during the iteration.

I tried (dcl_Control_Redraw Label1) before (dcl_Control_SetCaption) but the result is the same.

Thanks for your help.

Copter
Attachments
Your call to (dcl_Control_Redraw) should fix the problem, but it doesn't because that function was not designed to redraw the background of transparent controls. I've fixed it now for Beta 3 so that Redraw also repaints the background of transparent controls.

A workaround in the meantime is to call (dcl_Control_Redraw) on the *form* after the caption is changed (but this could cause flashing, as it redraws the entire form instead of only the area behind your label control).
Thanks Owen.

I'll wait for beta 3.

Copter