Print Page | Close Window

How to set RibbonBar’s 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=3912
Printed Date: 22 June 2025 at 12:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set RibbonBar’s font ?
Posted By: Soft4U
Subject: How to set RibbonBar’s font ?
Date Posted: 30 March 2006 at 7:21am

I can Set

    Dim RibbonBar As RibbonBar
    Set RibbonBar = CommandBars.AddRibbonBar("The Ribbon")

    Dim newFont As StdFont
    Set newFont = New StdFont
    With newFont
        .Name = "VK Sans Serif"
        .Size = 8
    End With
    Set CommandBars.Options.Font = newFont

But RibbonBar is not change.

How to set my font for RibbonBar ?

 

thanks !

 

 

 




Replies:
Posted By: jcollier
Date Posted: 30 March 2006 at 11:10am
I just did the following:

Dim RibbonBar As RibbonBar
Set RibbonBar = CommandBars.AddRibbonBar("The Ribbon")

CommandBars.Options.Font = "VK Sans Serif"

It worked for me.  I tried several different fonts with no problems.

Using Beta 2 With VB6


Posted By: Soft4U
Date Posted: 30 March 2006 at 12:52pm

...................

Set TabWrite = RibbonBar.InsertTab(0, "Sè D­ §Çu Kú")

RibbonTab is not work 

 



Posted By: SuperMario
Date Posted: 30 March 2006 at 1:03pm
So what exactly does not work?


Posted By: Soft4U
Date Posted: 30 March 2006 at 1:13pm

the font of TabWrite Caption is not work.

it had not been infected with the font  "VK Sans Serif".



Posted By: Oleg
Date Posted: 30 March 2006 at 1:58pm
RibbonBar.TabPaintManager.Font.Name = "VK Sans Serif"

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


Posted By: Soft4U
Date Posted: 30 March 2006 at 7:44pm

oh , Thank you for all your kind help !!!

but how to set font for the caption group of RibbonTab ?

Set GroupClipborad = TabWrite.Groups.AddGroup("NghiÖp Vô")

the font of Group Caption is not work.



Posted By: Oleg
Date Posted: 31 March 2006 at 7:50am
This will be available in official release.

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



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