Hi all, I’m new to XoJo so forgive the newbie question. I drag a label onto the form and select Inspector to view its properties. How do I access properties like .TextSize and .TextFont?
Thanks
Glenroy
Hi all, I’m new to XoJo so forgive the newbie question. I drag a label onto the form and select Inspector to view its properties. How do I access properties like .TextSize and .TextFont?
Thanks
Glenroy
[quote=120665:@Glenroy Skelton]Hi all, I’m new to XoJo so forgive the newbie question. I drag a label onto the form and select Inspector to view its properties. How do I access properties like .TextSize and .TextFont?
[/quote]
Click the gear icon on top of the inspector.
[quote=120665:@Glenroy Skelton]Hi all, I’m new to XoJo so forgive the newbie question. I drag a label onto the form and select Inspector to view its properties. How do I access properties like .TextSize and .TextFont?
Thanks
Glenroy[/quote]
Glenroy you may also use an Event to change those parameters also.
For example you may want different Text on this one label for Windows OR MacOSX:
In The Labels Open Event use:
#If TargetMacOS = False Then
Me.TextFont = "Helvetica"
Me.TextSize = 14
Me.TextAlign = Label.AlignCenter
Me.Text = "My Mac Rocks!"
#ELSEIF TargetWin32 = False Then
Me.TextFont = "Courier"
Me.TextSize = 14
Me.TextAlign = Label.AlignCenter
Me.Text = "Windows Rocks!"
#endif
HTH