To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 5491
5490  |  5492
Subject: 
Re: Yet another L3PAO update
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 27 Oct 2000 20:46:41 GMT
Viewed: 
754 times
  
In lugnet.cad.dev, Jeff Boen wrote:

In lugnet.cad.dev, Bram Lambrecht writes:
For reference, my monitor resolution is 1152x864 with Large Fonts (125%).
I haven't had a problem with Large fonts and L3P before, though... If you
want, I can post a screen shot.

It's the large fonts. I changed the window so that it is a static size, but it
appears font sizes are causing a problem. Someone else mentioned this in a
direct email. I guess I'll have to go back to using a sizable window.

Any ideas, Stever (Bliss)?

Are you sizing the controls in the Form_Resize event?  If not, you should
be.

Another approach is to fix the form size in the Form_Load event, based on
the right-most and bottom-most control(s).  Assuming ctlRight is the
control that ends furthest to the right, and ctlBottom is the control that
ends furthest to the bottom, and the form's ScaleMode is set to Twips (the
default value), you can do:

Me.Width = Me.Width - Me.ScaleWidth + ctlRight.Left + ctlRight.Width
Me.Height = Me.Height - Me.ScaleHeight + ctlBottom.Top + ctlBottom.Height

The funky "Me.Width - Me.ScaleWidth" is there because it calculates the
width of the window borders, and preserves it.  Ditto for the Height
adjustments.

You can use this code, even if the form is set to non-resizeable.

I'd still add resizing code to the Form_Resize event, because I'm a sucker
for punishment.  I mean, because it makes the program much more pleasant to
work with.  There's almost always some control that would benefit from
having as much space as the user wants to give to it.

Steve



Message has 1 Reply:
  Re: Yet another L3PAO update
 
(...) Oh yeah, definitely. (...) That's actually why I opted to do, I based the window size on the control that is in the lower right corner of the form. Good to see we were thinking the same thing. J (24 years ago, 27-Oct-00, to lugnet.cad.dev)

Message is in Reply To:
  Re: Yet another L3PAO update
 
(...) It's the large fonts. I changed the window so that it is a static size, but it appears font sizes are causing a problem. Someone else mentioned this in a direct email. I guess I'll have to go back to using a sizable window. Any ideas, Stever (...) (24 years ago, 26-Oct-00, to lugnet.cad.dev)

10 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR