Pattern Property (Read/Write) |
Top Previous Next |
Sets/gets a regular host screen search expression for hotspot recognition and its graphical draw. When a hotspot is set in your application design time, it needs a search expression where Integration Pack can identify and display the hotspot at application run time.
Visual Basic Syntax
TNBXHotSpot.Pattern [= String]
Delphi Syntax
TNBXHotSpot.Pattern [:= string];
Remarks
This property is a string value that represent part or all the text displayed of a host screen field where you want to display a hotspot instead of the original text.
A simple example:
Suppose that a host screen has a field that denotes how you can access a specific application option, for example, accessing a public library with the command L. The text displayed in the host field will be like this:
L - LIBRARY (Public Access)
The corresponding value for pattern property will be:
TNBXHotSpot1.Pattern="L - LIBRARY \(Public Access\)"
In this case we use \ character because parenthesis characters in regular expression has a different meaning. If you don't have regular expressions characters in the host screen field, you can assign the same text that you are viewing (without \ characters).
Associated with Pattern property, ActionFieldData property must be set. In this example the value of this second property will be:
TNBXHotSpot1.ActionFieldData="L@E"
See Also ActionFieldData property. |