Search Locate Previous Next Contents

The String Property

This is used to specify a design-time property (such as a caption) which is a simple text vector, and should not be displayed with an APL font. It is represented in the Designer as a simple edit field with a ‘more’ button at the right-hand edge.

By default this pops up a simple notepad field; to invoke a specific service function, simply set the property as “myprop : string ‘foo’ “ – this will run foo in the class namespace (passing it the string, and expecting a string result) from the ‘...’ button for string types. The shipped ‘AC’ class illustrates the effect for the ‘Accelerator’ property which can now be entered by simply pressing the appropriate key combination.



Continue to: The APL-format Text Property
© Copyright Causeway Graphical Systems Ltd 2001