DesktopLabel.Italic
From Xojo Documentation
Property (As Boolean )
aDesktopLabel.Italic = newBooleanValue
or
BooleanValue = aDesktopLabel.Italic
New in 2021r3
Supported for all project types and targets.
or
BooleanValue = aDesktopLabel.Italic
New in 2021r3
Supported for all project types and targets.
If True, applies the italic style to the control's caption and/or its text content if any.
Notes
MacOS apps only show Italic if the font has that style built-in. Be sure to check the font using the Font Book app to see if it can be displayed in Italic.
Sample Code
This example sets the text to italic. It is in the Opening event of the control.