CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon May 20, 2019 5:28 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Mar 27, 2017 3:27 pm 

Joined: Wed Dec 14, 2016 4:56 pm
Posts: 1
is it possible to code a font size dependent on criteria for use on display CR0451

PostPosted: Fri Jun 01, 2018 3:11 pm 
User avatar

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 67

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.

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

(Scroll down for my projects)

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited