![]() |
Font size |
Post Reply ![]() |
Author | |
wakerunner ![]() Groupie ![]() Joined: 29 September 2007 Status: Offline Points: 85 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
wakerunner ![]() Groupie ![]() Joined: 29 September 2007 Status: Offline Points: 85 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |