programming a font change

tristar
2017-03-27
2018-06-01
  • tristar - 2017-03-27

    is it possible to code a font size dependent on criteria for use on display CR0451

     
  • aliazzz

    aliazzz - 2018-06-01

    yes,

    As found in the Codesys v2.3 help section Codesys Viualisation - Textvariables;

    In category Textvariables of the dialog for configuring visualization elements you can specify a
    variable which should dynamically set color and font of that string which is defined in category 'Text'.
    At best enter the variable name with the aid of the input assistant (<f2>).
    You can also use components of the structure VisualObjectType to set the text properties. For this
    see the description of category 'Programability'; there you will find the possible values of the particular
    structure components and their effect.
    Note: If there are corresponding static definitions in category 'Text', these will be overwritten by the dynamic
    parameter values.
    In case of multiple definition of an element property consider the specific order of precedence
    concerning according to which a value might be overwritten in online mode by another.</f2>

    in Fontheight you can programmaticaly set the the font height in pixels;
    ".fonth" fonth:=16; means Font height 16 pt

     

Log in to post a comment.