Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

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.