Visual component styles
Posted: 16 Jul 2014, 06:23
size=150bVisual component styles/b/size
Version 0.1.28 and higher
From version 0.1.28 you can attach style to the visual component.
buStyle definition contains:/u/b
list
*font (font name, size, style)/*:m
*visual component location (horizontal and vertical alignment, spacing / fixed coordinates)/*:m/list:u
Any change in style definition is automatically applied to all components with the same style.
ubStyle export/import/b/u
You can save/load style definition from a file. Use icon menu buttons in Style manager window.
When you save styles to the default location:
ic:\Users\<UserName>\Documents\DesignForms_0.1\DefaultStyles.styles/i
new calculation will automatically load these styles.
ubStyle cleaning:/b/u
You can automatically delete unused styles in Styles manager.
ubStyle overwriting:/b/u
Master calculation can overwrite definition of styles in extern calculation.
If you load extern CLC using LoadExternCLC(<ExternCLCName>, TRUE), styles from Master CLC will be copied to the ExternCLC. Styles with identical name will be overwritten in ExternCLC.
iImportant: Style names are case sensitive and white-space sensitive. Style names in Master and ExternCLC must be identical to be overwritten./i
See attached example for more details.
Version 0.1.28 and higher
From version 0.1.28 you can attach style to the visual component.
buStyle definition contains:/u/b
list
*font (font name, size, style)/*:m
*visual component location (horizontal and vertical alignment, spacing / fixed coordinates)/*:m/list:u
Any change in style definition is automatically applied to all components with the same style.
ubStyle export/import/b/u
You can save/load style definition from a file. Use icon menu buttons in Style manager window.
When you save styles to the default location:
ic:\Users\<UserName>\Documents\DesignForms_0.1\DefaultStyles.styles/i
new calculation will automatically load these styles.
ubStyle cleaning:/b/u
You can automatically delete unused styles in Styles manager.
ubStyle overwriting:/b/u
Master calculation can overwrite definition of styles in extern calculation.
If you load extern CLC using LoadExternCLC(<ExternCLCName>, TRUE), styles from Master CLC will be copied to the ExternCLC. Styles with identical name will be overwritten in ExternCLC.
iImportant: Style names are case sensitive and white-space sensitive. Style names in Master and ExternCLC must be identical to be overwritten./i
See attached example for more details.