Fourth World Logo Fourth World Media Corporation
  Embassy Services Products Resources   About Fourth World Contact  

IncWell Logo

SuperCard FAQ

4W Logo

How do I implement sharedText background fields in SC?

"SharedText" in background fields are not directly supported, although nearly identical functionality can be implemented in SuperCard using draw text objects.

The text stored in a draw text object is a property, referred to as the object's textData. You can get and set this property:

get the textData of graphic "MyTextGraphic"
set the textData of graphic "MyTextGraphic" to card field 1

You can set the textData to any valid text container, such as a variable or a field. If you use a field and the field contains style information for the text, that information will be copied along with the text into the textData, making the style run of the graphic object match that of the field.