![]() |
I can't change the FONT |
Post Reply
|
| Author | |
hamed
Groupie
Joined: 18 November 2006 Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: I can't change the FONTPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
hamed
Groupie
Joined: 18 November 2006 Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
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,
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |