CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Wed Jun 20, 2018 8:22 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 
Offline

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


Top
   
PostPosted: Fri Jun 01, 2018 3:11 pm 
Offline

Joined: Fri Jan 19, 2018 3:38 pm
Posts: 7
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.

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


Top
   
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