![]() |
Font BUG in RibbonBar? |
Post Reply ![]() |
Author | |
gibra ![]() Senior Member ![]() Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
![]() ![]() ![]() ![]() ![]() Posted: 14 April 2011 at 6:48am |
When I set the font Size > 8 in Ribbonbar some chars result truncated!
i.e., set font Size to 10 pt.:
CommandBars.Options.Font = 10
CommandBars.RecalcLayout
MyRibbonBar.RecalcLayout
the result is
![]() ![]() As you see:
- char 'g' in 'Anagrafica' and 'Aggiorna' caption
- char 'p' in 'Stampa' caption
(I think that char 'q' also will result truncated)
It's a bug?
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Best way to increase font height is
RibbonBar.FontHeight = 13 it will also increase height of tabs/captions.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
gibra ![]() Senior Member ![]() Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
![]() ![]() ![]() ![]() ![]() |
Sorry, isn't.
![]() If I set font Size for both Commandbars and RibbonBar:
CommandBars.Options.Font.Size = 10
RibbonBar.FontHeight = 10
nothing change, about the problem.
If I set font Size for RibbonBar only:
RibbonBar.FontHeight = 10
The size still 8 pt.
N.B. Of course, after i call RecalcLayout for both:
RibbonBar.RecalcLayout
CommandBars.RecalcLayout Thank for your help.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
![]() |
|
gibra ![]() Senior Member ![]() Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
![]() ![]() ![]() ![]() ![]() |
Up.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1355 |
![]() ![]() ![]() ![]() ![]() |
I'm guessing that the RibbonBar.FontHeight property uses pixels instead of points (although the documentation doesn't say for sure). If you use this formula:
l_Pixels = l_Points * (1440 / Screen.TwipsPerPixelY ) / 72 Where l_Points is your font size, you should get the required value (in this case 13.333 pixels, matching the value Oleg said to use). |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
gibra ![]() Senior Member ![]() Joined: 31 October 2008 Location: Italy Status: Offline Points: 288 |
![]() ![]() ![]() ![]() ![]() |
I've try to to change the RibbonBar.FontHeight value, but nothing changes.
![]() Thank for your reply, jbpro.
![]() I've try with then new Office2010.cjstyles (get from Codejock support) but this is worse.
As you can see, the higlitgh selection is not draw good.
But now the 'g' char in button is shows correctly (not truncated).
![]() Instead, in Caption group the 'g' still truncated as 1st my message.
|
|
gibra
CJ SuiteControl v: 13.x to 19.x Windows 10 64bit VS2019 - VB6.0 SP6 <a href="http://nuke.vbcorner.net/Home/tabid/36/language/en-US/Default.aspx" rel="nofollow">VS/VB 6.0 Installer v6.8 |
|
![]() |
|
leeyn ![]() Newbie ![]() Joined: 18 March 2011 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Best way to increase font height is
RibbonBar.FontHeight = 13...
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |