Print Page | Close Window

Font BUG in RibbonBar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18221
Printed Date: 06 October 2024 at 2:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Font BUG in RibbonBar?
Posted By: gibra
Subject: Font BUG in RibbonBar?
Date 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



Replies:
Posted By: Oleg
Date Posted: 15 April 2011 at 8:11am
Best way to increase font height is

RibbonBar.FontHeight = 13

it will also increase height of tabs/captions.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: gibra
Date Posted: 15 April 2011 at 12:32pm
Sorry, isn't. Confused
 
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


Posted By: gibra
Date Posted: 25 April 2011 at 5:35pm
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


Posted By: jpbro
Date Posted: 25 April 2011 at 9:02pm
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



Posted By: gibra
Date Posted: 04 May 2011 at 10:07am
I've try to to change the RibbonBar.FontHeight value, but nothing changes.
Ouch
 
Thank for your reply, jbpro.
Smile
 
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). Wink
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


Posted By: leeyn
Date Posted: 05 May 2011 at 3:53am
Best way to increase font height is
RibbonBar.FontHeight = 13...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net