Print Page | Close Window

Ribbon Tab Font

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=10207
Printed Date: 21 December 2024 at 10:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon Tab Font
Posted By: WaleedSeada
Subject: Ribbon Tab Font
Date Posted: 12 April 2008 at 12:32pm
Hello All,
 
I want to change the font of the Tab in the ribbon bar control.
I change the font of the window hosting the ribbon to Tahoma (arabic).
I create a function called setfont as following and I call it after the ribbon is created in form load event
 
/* ***************************************** */
    Dim TextFont As StdFont
    Set TextFont = Me.Font
 
    RibbonBar.TabPaintManager.Font.Charset = TextFont.Charset
    RibbonBar.TabPaintManager.Font.name = TextFont.name
    RibbonBar.TabPaintManager.Font.size = 8
   
    RibbonBar.RibbonPaintManager.CaptionFont.Charset =TextFont.Charset
    RibbonBar.RibbonPaintManager.CaptionFont.name = TextFont.name
    RibbonBar.RibbonPaintManager.CaptionFont.size = 8
   
    CommandBars.Options.Font.Charset = TextFont.Charset
    CommandBars.Options.Font.name = TextFont.name
    CommandBars.Options.Font.size = 8
/* ***************************************** */
 
the font of the items inside the group and the group itself changed, but the Tab label font didn't ...
 
How can I change the font of these labels .. and also the font of the main hosting the ribbon bar ...
 
Best regards,
 


-------------
: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