Controlling the Scheme layout
- Last UpdatedDec 02, 2025
- 1 minute read
It is possible to customize the scheme layout to some extent. It is done via a Vitesse Hook called _TBhook_PPanScheme. It contains two methods SplitIntoLines and FormatLine.
-
SplitIntoLines takes a statement text and is supposed to return it after for example, rearranging the keywords and adding mandatory line breaks. Line breaks are added by inserting the characters <br> into the text for each line break. It is not necessary to control all line breaks, the system will add additional line breaks to make sure a line does not exceed the maximum length.
SplitIntoLines is called when the system has created a statement from the panel object data that then has a fixed layout. If the returned statement is no longer a valid statement a normal generation error will occur when attempting to run it.
-
FormatLine is used to make parts of a statement line be written in bold. Adding a pair of the characters <b> and </b> will make everything between them bold. It is called when a line is to be presented in the Editor.