Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Font BUG in RibbonBar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Font BUG in RibbonBar?

 Post Reply Post Reply
Author
Message
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post Topic: Font BUG in RibbonBar?
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
gibra View Drop Down
Senior Member
Senior Member


Joined: 31 October 2008
Location: Italy
Status: Offline
Points: 288
Post Options Post Options   Thanks (0) Thanks(0)   Quote gibra Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
leeyn View Drop Down
Newbie
Newbie


Joined: 18 March 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote leeyn Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2011 at 3:53am
Best way to increase font height is
RibbonBar.FontHeight = 13...
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.157 seconds.