Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - I can't change the FONT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I can't change the FONT

 Post Reply Post Reply
Author
Message
hamed View Drop Down
Groupie
Groupie


Joined: 18 November 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote hamed Quote  Post ReplyReply Direct Link To This Post Topic: I can't change the FONT
    Posted: 12 May 2007 at 3:12am
  I can't change the font of Ribbon and Commandbar to the Tahoma (Arabic), Here is my code In my MDI, I've picHolder object with it's font sets to Tahoma Arabic:
 
   Set CommandBars.Options.Font = picHolder.Font
   Set CommandBars.Options.FloatingBarCaptionFont = picHolder.Font
   Set RibbonBar.RibbonPaintManager.CaptionFont.Name = picHolder.Font
   Set RibbonBar.TabPaintManager.Font.Name = picHolder.Font
   
 Also using
     CommandBars.Options.Font.Name="Tahoma"
     CommandBars.Options.FloatingBarCaptionFont.Name="Tahoma"
     ....
 
with no success!
 
When I use the : Debug.Print CommandBars.Options.Font.Name the result is : Segoe UI
 
I can send a picture of my problem, if U think it can help,
 
THx for your prompt reply,
Hamed
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: 14 May 2007 at 1:38am
Hi,
 
May be you set them before you set paintmanager/visual theme. Try to call it in last lines.
 
I added in our sample
 
CommandBars.Options.Font.Name = "Tahoma"
Debug.Print CommandBars.Options.Font.Name
and it works.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
hamed View Drop Down
Groupie
Groupie


Joined: 18 November 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote hamed Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2007 at 8:32am
I've found something fantastic,
 
1) the problem was the skin framework, when remove the skin frame work from my form it's ok, changing font is perfect,
 
2) this works when remove the skinframework:
 
CommandBars.Options.Font.Name = "Tahoma": CommandBars.Options.Font.Charset = 178
   CommandBars.Options.FloatingBarCaptionFont.Name = "Tahoma": CommandBars.Options.FloatingBarCaptionFont.Charset = 178
   RibbonBar.RibbonPaintManager.CaptionFont.Name = "Tahoma": RibbonBar.RibbonPaintManager.CaptionFont.Charset = 178
   RibbonBar.TabPaintManager.Font.Name = "Tahoma": RibbonBar.TabPaintManager.Font.Charset = 178
 
 This is not:
 
With CommandBars.Options.Font
      .Name = "Tahoma"
      '.SIZE = 8
      .Charset = 178
   End With
   With CommandBars.Options.FloatingBarCaptionFont
      .Name = "Tahoma"
      '.SIZE = 8
      .Charset = 178
   End With
   With RibbonBar.RibbonPaintManager.CaptionFont
      .Name = "Tahoma"
      '.SIZE = 9
      .Charset = 178
   End With
   With RibbonBar.TabPaintManager.Font
      .Name = "Tahoma"
      '.SIZE = 8
      .Charset = 178
   End With
 
I don't know why?! How can I use this with skinframework?
 
Also how can I change the form caption in ribbon theme mode?
 
Thx for your reply,
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: 15 May 2007 at 1:38am
Hi,
 
Again can't reproduce. Please change our sample - check if you see same problem and attach it here.
 
What CommandBars version do you have?
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.