Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3666

DesktopLabel - how to set FontName without a code?

$
0
0

In my application, i create a global variable for FontName, FontSize and FontColor. For each Label and TextField i set this 3 visual effects.
In my DesktopWindow I have to set these 3 properties for all fields (DesktopLabel and DesktopText). I created global variables and would like to know if I can apply these properties through some property in DesktopLabel and DesktopText without needing code. If I have 10 labels, I have to do it manually through code for each one of them. Below is the code I use. It would be simpler if it were a property that I set somewhere.

// Rectangle
me.RectangleAddProject.FillColor = ColorPaletteColor03

// Window
me.BackgroundColor = ColorPaletteColor02

// Labels
Label01.FontName = FontNameDefault
Label01.FontSize = FontSizeDefault
Label01.TextColor = ColorLetterEnable
Label02.FontName = FontNameDefault
Label02.FontSize = FontSizeDefault
Label02.TextColor = ColorLetterEnable
Label03.FontName = FontNameDefault
Label03.FontSize = FontSizeDefault
Label03.TextColor = ColorLetterEnable

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3666

Trending Articles