From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

font properties for SUD objects Diadem 8.1

Hello. I am trying to format text objects depending of some events. The help shows an example, but it refers to a string with a lot of commas. Can anybody help me to understand the syntax?
Thank You
0 Kudos
Message 1 of 2
(2,930 Views)

DIAdem 10. has more detailed description of the font

 

Description of the Font Property

The Font object specifies the font, the font style, the font size, and the font attributes of controls in a user dialog box. The Font object consists of the following properties, which you enter in a string, separated by commas.

Refer to the Microsoft help file on LogFont structure for more information.

lfHeight LongInteger.
Specifies the font size.
lfWidth LongInteger.
Reserved (=0).
lfEscapement LongInteger.
Reserved (=0)
lfOrientation LongInteger.
Reserved (=0).
lfWeight LongInteger.
Specifies the width of the font in a value range from 0 to 1000.
400 creates a normal font, and 700 creates a bold font.
0 is the standard width.
lfItalic Byte.
Specifies whether the text appears in italics.
lFUnderline Byte.
Specifies whether the text appears underscored.
lfStrikeOut Byte.
Specifies whether the text appears crossed out.
lfCharSet Byte.
Specifies the font. (0=ANSI_CHARSET, 1=DEFAULT_CHARSET, 2=SYMBOL_CHARSET)
lfOutPrecision Byte.
Reserved
lfClipPrecision Byte.
Reserved
lfQuality Byte.
Reserved
lfPitchAndFamily Byte.
Reserved.
lfFaceName String.
Specifies the font.

Examples

The following example specifies the font for Text1 as Arial, 10 pt, standard:

Text1.Font = "-13,0,0,0,400,0,0,0,0,3,2,1,34,Arial"

The following example specifies the font for Text1 as Windings, 11 pt, bold:

Text2.Font = "-15,0,0,0,700,1,0,0,2,3,2,1,2,Windings"
0 Kudos
Message 2 of 2
(2,924 Views)