Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to set RibbonBar’s font ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set RibbonBar’s font ?

 Post Reply Post Reply
Author
Message
Soft4U View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Soft4U Quote  Post ReplyReply Direct Link To This Post Topic: How to set RibbonBar’s font ?
    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 !

 

 

 

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Soft4U View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Soft4U Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2006 at 12:52pm

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

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

RibbonTab is not work 

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2006 at 1:03pm
So what exactly does not work?
Back to Top
Soft4U View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Soft4U Quote  Post ReplyReply Direct Link To This Post 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".

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: 30 March 2006 at 1:58pm
RibbonBar.TabPaintManager.Font.Name = "VK Sans Serif"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Soft4U View Drop Down
Newbie
Newbie
Avatar

Joined: 28 March 2006
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Soft4U Quote  Post ReplyReply Direct Link To This Post 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.

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: 31 March 2006 at 7:50am
This will be available in official release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.