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?
0
Comments
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
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.
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.