Print Page | Close Window

Font size

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=8880
Printed Date: 18 June 2025 at 7:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Font size
Posted By: wakerunner
Subject: Font size
Date 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.



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


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



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