When you are changing something on a form, a REPAINT occurs. If you are having a process ongoing that takes resources, the REPAINT might not happen timely, that is where the "ProcessMessage" command came in. It gives a timeslice to a message in the queue so it can complete, in this case the update to the form PAINT.

It's in the helpfile with an example.  It likely fits your issue.



----- Original Message ----- From: <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, January 14, 2010 5:39 PM
Subject: [RBASE-L] - Re: Label disply refresh on form - Partial answer




In this case, to get the look I wanted, I unchecked autosize and stretched

the label box to the longest size I thought needed.



The label display now seems to look as I want.



However, there could be times that I need the autosize and having a

FORM REFRESH command would be handy.



What is the property command to refresh the form display?



Thanks,

-Bob



----- Original Message ----- From: "ttc inc" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, January 14, 2010 3:57:08 PM GMT -06:00 US/Canada Central
Subject: [RBASE-L] - Label disply refresh on form




I have many forms that I display information on during processing

to inform the user what is going on. I normally place a label on the

form with the font, color, position etc. that I desire.



I then make the label invisible on form start up and when I wish to

display information, I make the label visible with the property command.



I change the content of the label with the property command using the

example below :



SET VAR vtext = ( 'Updating PO -> ' + . vponumber )
PROPERTY processtext caption . vtext
PROPERTY RBASE_FORM refresh 'TRUE'

VAR vtext = ( 'Updating PO -> ' + . vponumber )
PROPERTY processtext caption . vtext
PROPERTY RBASE_FORM refresh 'TRUE'



This works OK but I get an "unprofessional" look in that if the

first PO is ABC123456 it displays fine. However if the

second PO is XYZABC, the form will display XYZABC456

as it is shorter than the previous PO number. You can tell

it is an over write, but it not the result I want.



Neither the on-line nor RDocs show a REFRESH command,

but I was thinking that this was a valid command. It does

seem to work in certain instances.



Any thoughts on how to make my label display update properly?



Thanks,

-Bob


Reply via email to