Print Page | Close Window

font display on RibbonBar's Tab

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=5654
Printed Date: 18 June 2025 at 5:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: font display on RibbonBar's Tab
Posted By: Norika
Subject: font display on RibbonBar's Tab
Date Posted: 30 November 2006 at 8:21pm

I use RibbonBar of ActiveX edition. (CommandBars Control Ver.10.3.1)
I must change a font to let a ribbon bar display words of 2 bytes cord.
I was able to change the letter displayed by the lower part of my RibbonBar bar by below description.

    RibbonBar.RibbonPaintManager.CaptionFont.Name = "MS UI Gothic"
    RibbonBar.RibbonPaintManager.CaptionFont.Size = 9

However, I was able to change the letter displayed by a tab of the upper part of a ribbon bar.
But because it is not displayed by a garbage definitely, I cannot read.

    Set TabWrite = RibbonBar.InsertTab(0, "こんにちは")
    TabWrite.Id = ID_TAB_WRITE
    TabWrite.RibbonBar.RibbonPaintManager.CaptionFont.Name = "MS UI Gothic"
    TabWrite.RibbonBar.RibbonPaintManager.CaptionFont.Size = 9

Please teach it.
Best Regards,
Norika




Replies:
Posted By: Oleg
Date Posted: 01 December 2006 at 12:19am

Hi,

use TabPaintManager property.


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


Posted By: Norika
Date Posted: 09 January 2007 at 10:16pm
Hi, Thank you very much for your quick reply and a pinpoint advice.
 
I can show another fonts correctly.
 
    TabWrite.RibbonBar.TabPaintManager.Font.Name = "MS UI Gothic"
    TabWrite.RibbonBar.TabPaintManager.Font.Size = 9
    TabWrite.RibbonBar.TabPaintManager.Font.Charset = 128
Best Regards,
 
Norika


Posted By: WaleedSeada
Date Posted: 07 May 2007 at 5:12am
Hello,
 
Where did you get this number??, because I need to get the correct CharSet to display Arabic text in command bar
 
Thanks
waleed


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada


Posted By: Oleg
Date Posted: 07 May 2007 at 8:24am
Hello,
 
ARABIC_CHARSET is 178


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


Posted By: WaleedSeada
Date Posted: 08 May 2007 at 2:46am
Hello Oleg,
 
I tried this in VB and the arabic is correclty displayed.
But I can't egt the same result from Powerbuilder, I did change the ribbon paint manager, tab paint manager and the ribbon opotions.
 
Note: i am not using the unicode version !!
 
best regards
Waleed
 


-------------
:Powerbuilder 10.5
:Codejock suite 11.2.2
=========================
Waleed Seada



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