Changing Text Attributes

Navigation:  ScriptLine Properties > Macros Options > Resulting Actions > Examples >

Changing Text Attributes

Previous pageReturn to chapter overviewNext page

Suppose you wanted to change the color of the day (1-31) on dates when a holiday occurred.

 

Using Macros you would replace the [d] token by a Macro token, say [*1d]. The core of the macro would be a single line that checks if there is a holiday for the token date in the a-Holidays list :

 

bRESULT = HolidayOfListOnDate('a', n_TokenDate)

 

In the Macros property of the current ScriptLine you would select the above macro, and in the resulting actions tab you would, for example, set the following actions to be taken when a holiday occurs:

 

 

Note that if you had wanted to change the color of the textbox background, you would have set the color change in the TextBox Actions zone of the dialog instead.


Topic 144000 updated on 12-May-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?changingtextattributes2.htm