Article Created: 13 May 1991
Article Last Reviewed:
Article Last Updated:
What is the HyperCard IIGS script to highlight text on a card field to a certain color?
Field properties (as listed and documented in the HyperTalk Beginners Guide) include frameColor and textColor. FrameColor cannot be changed using a script.
TextColor can be changed to one of the sixteen current colors in the colorSet. Here is the script:
set the textColor of card field field1 to n
where n is a number from 1 to 16. The highlight color is always black; the text within the highlight becomes the compliment of the textColor.
Note: Be careful about being misled by the actions of the "color" section of the "field info" dialog where the highlight color is the same as the textColor and the text within the highlight becomes white.
Copyright 1991 Apple Computer, Inc.
This information is from the Apple Technical Information Library.