Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Ribbon Tab Font
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon Tab Font

 Post Reply Post Reply
Author
Message
WaleedSeada View Drop Down
Groupie
Groupie
Avatar

Joined: 29 March 2007
Location: Egypt
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote WaleedSeada Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Tab Font
    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
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.266 seconds.