Framework:DefineStyle: Difference between revisions

From CoPlanner 11
Jump to navigationJump to search
No edit summary
D.harg (talk | contribs)
Angleich ans Deutsche Wiki
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:


<span {{CoPFormel}}>DefineStyle<nowiki>(<Expression>,<Font>,<Size>,<Style>,<Color>,<Value>);</nowiki></span>
<span {{CoPFormel}}>DefineStyle<nowiki>(<Expression>,<Font>,<Size>,<Style>,<Color>,<Value>);</nowiki></span>


{| class="wikitable" width="80%"
{| class="wikitable" width="80%"
Line 16: Line 15:
|-
|-
|Size
|Size
|Size of the font
|Size of the font (no longer supported)
|-
|-
|Style
|Style
|Bold, italic, underline(BCU)
|Bold, italic, underline(B,I,U)
|-
|-
|Color
|Color
Line 27: Line 26:
|Color of the styles, can be also a variable
|Color of the styles, can be also a variable
|}
|}
 
This function belongs to [[:Category:Functions_-_client-side|client-side functions]]. The function has to be defined in the SpecialDefinition section of the mask.
[[File:DefineStyle.png|thumb|Example of a defined style.|alt=|none|1371x1371px]]
==Result==
==Result==
Defines a style with font and backcolor.
Defines a style with font and backcolor.


==Example==
==Example==

Latest revision as of 12:31, 3 March 2025

Function

DefineStyle(<Expression>,<Font>,<Size>,<Style>,<Color>,<Value>);

Parameter Description
Expression Name of the style
Font Name of the font
Size Size of the font (no longer supported)
Style Bold, italic, underline(B,I,U)
Color Color of the font
Value Color of the styles, can be also a variable

This function belongs to client-side functions. The function has to be defined in the SpecialDefinition section of the mask.

Example of a defined style.

Result

Defines a style with font and backcolor.

Example

DefineStyle(style1,Microsoft Sans Serif,10,B,FFFFFF,Summen);