MIYAKO | 15 May 21:33

Re: Display of Field Updates on Form

Hello.

REDRAW and REDRAW WINDOW are no longer relevant and have no practical  
effect.
CALL PROCESS(-1), or RESIZE FORM WINDOW(0;0), as you have rightly  
pointed out,
is the current way to redraw.

to be more specific, you need to fire a form method, which both of the  
above effectively does.

the real question is, why would you need to redraw outside the context  
of a form event?

an understandable situation would be, that you have updated the values  
within a plugin.
in such cases you may execute Variable:=Variable just to notify 4D  
which Variable requires a redraw.

I have no definite explanation for the case Bill is seeing,
(obviously an On Clicked event has been fired),
perhaps it has to do with the layout order (level) of each objects on  
the form
and the manner in which 4D draws individual objects (from back to  
front).

maybe only Variables are subject to such immediate updates
whereas records require LOAD RECORD.

miyako

On 2008/05/16, at 3:57, Paul Mohammadi wrote:

> Bill,
>
> I curse 4D's ability or rather inability to update form elements on a
> daily basis... sometimes they work flawlessly, sometimes they choke.
> REDRAW command is pathetically ineffective.
>
> The one sure fire way I found out that the form elements are drawn
> correctly is by resizing the window by 1 pixel... Create your own
> wrapper REDRAW_FORM where the form window is re-sized 1 pixel and then
> immediately re-sized back 1 pixel, this way the original window XY is
> maintained and everything on the form is updated... drawbacks are...
> output windows and subforms need to re-page their data from the server
> creating needless I/O but otherwise It should work.

**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************


Gmane