Is there a Refresh command for Form View?

Xypher
Xypher Member Posts: 297
Example: I have a card displaying a record and depending on an Option value will determine if all other fields are 'EDITABLE'.

Now if you select the Option value and all fields are set to *not* editable the textboxes, etc, don't update properly (greyed out & uneditable) without, as far as I can find out, hiding the window and making it visible again.

Is there any command to redraw/refresh/reload/etc a form?

Comments

  • Belias
    Belias Member Posts: 2,998
    Currform.UPDATE :wink:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Xypher
    Xypher Member Posts: 297
    I have tried that.

    In the definition of that function it does 2 things. Saves the current record and updates the controls on the form. But it appears it only does the first (properly at least).

    All the textboxes etc still show white background and 'appear' editable. Just seems quite glitchy.
  • tihomirjur
    tihomirjur Member Posts: 21
    Have you tried CurrForm.UPDATE(FALSE). That way no record is saved but the form is updated only. That also works if u want to put update on the trigger that normally doesnt accept update function , for example in OnAftergetRecord trigger.
  • Xypher
    Xypher Member Posts: 297
    I have so far found UPDATE, used in any manner, produces the same glitchy form refresh/redraw




    So far the only bit of code that I find produces the desired results is:

    CurrForm.VISIBLE := FALSE;
    CurrForm.VISIBLE := TRUE;

    But, of course, this looks also glitchy as the form flickers.