Print Page | Close Window

I can't change the 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=7116
Printed Date: 18 June 2025 at 11:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: I can't change the FONT
Posted By: hamed
Subject: I can't change the FONT
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: hamed
Date 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,


Posted By: Oleg
Date 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



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