> I am working on an application that allows the user to select one
> of four options on the screen. Once a selection is made, I would
> like that option to appear in a different color. I could
> hard-code coordinates and colored text into a VALID statement,
> but I would like it to be dynamic and generate properly. Any
> suggestions? Thanks!
More specifics required please :
What platform are you working on ?
DOS would be relatively simple, however graphical interfaces like WINDOWS and MAC
would be harder.
What type of objects are these four screen options: SAY, GET, ... ?
One method (DOS mainly) is to store the COLOR pair in a memory variable and then extend
the use of the GET's WHEN clause as follows :
WHEN .T. COLOR &cCOLOR
SAY objects would have to be changed to GET objects with the following WHEN clause :
WHEN .F. COLOR &cCOLOR
This works in the screen-builder in case you're wondering. Simply add the COLOR command
as above to your WHEN expression. NOTE: must be an expression NOT a procedure !!!
Hope this helps,
Steven H. Singerman
President, Creative Logic