Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Label Font Size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Label Font Size

 Post Reply Post Reply
Author
Message
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Topic: Label Font Size
    Posted: 05 May 2015 at 5:47pm
Not sure if I'm doing something wrong here, but it seems like the XAML markup is using the wrong font sizes. I have a sample form with two Suite Controls Label controls on it. They both have the font set in the IDE to Segoe UI 9. The upper label just has a normal text caption and markup is disabled. The lower label has markup enabled and a markup caption that should be setting the font to Segoe UI 9, but it looks much smaller. If I change the FontSize tag in the markup version to 12, then it looks about the same size as the 9pt font in the upper label. Is there something I can do to get both 9pt fonts to look the same?



Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2015 at 11:31pm
I think XAML FontSize defaults to PX, so if you explicitly define PT, you should get the desired result.

For example:


<TextBlock FontSize='9pt'>Test</TextBlock>

Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2015 at 1:02am
That seems to work. Thanks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.