//Make a new label and format it
Dim MyLabel as new Label
MyLabel.TextFont = "SmallSystem"
MyLabel.Text = "SmallSystem Text"
//Check the size
Dim MyTextSize as Integer
MyTextSize = MyLabel.TextSize
If MyTextSize = 0 then //Is size system default?
MyTextSize = Graphics.TextSize //Get Size
Else
MyTextSize = MyLabel.TextSize //Get other size
End If
msgbox "Small System Text Size is: " + CStr(MyTextSize)
The system text size is usually set to a default value of 0, which allows the OS to select the appropriate default size. To get the size of the default text then use the Graphics.TextSize command.
3 Responses
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.