Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Font size
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Font size

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


Joined: 29 September 2007
Status: Offline
Points: 85
Post Options Post Options   Thanks (0) Thanks(0)   Quote wakerunner Quote  Post ReplyReply Direct Link To This Post Topic: Font size
    Posted: 23 November 2007 at 4:05pm
I am using ribbonbars and I have users who have Windows set to display fonts large, which makes the ribbonbar dissappear if their resolution is not high enough. Is there a way to set commandbars/ ribbonbars to ALWAYS use a certain font/size? I tried the code below, it still changes to a large size when windows is set that way.
 

    CommandBars.Options.Font.Name = "Segoe UI"
    CommandBars.Options.Font.Size = 9.75
    CommandBars.Options.Font.Bold = False
   
 
Also I have a question about MinimumVisibleWidth, what is the unit of measure it is using? It will return 250 when my app width is over 15,000 and the ribbonbar will be hidden because it won't fit.
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2007 at 2:39pm

normally use the screen.twipsperpixel * miniumwidthrequired and for the application width there a big difference between form.width and form.scalewidth normaly the second method is the good one since the form width can be bigger than the visible part of it.

 
Marc
Back to Top
wakerunner View Drop Down
Groupie
Groupie


Joined: 29 September 2007
Status: Offline
Points: 85
Post Options Post Options   Thanks (0) Thanks(0)   Quote wakerunner Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2007 at 11:29pm
ribbonbar.minvisiblewidth=250
screen.twipsperpixelx=15
form.scalewidth=11910
 
250 x 15 =3750... so it should fit according to this
 
But the ribbonbar does not fit and is not displayed... something is not adding up.
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.032 seconds.