Board index » delphi » Forms under different screen resolutions - Help please
Brian Childs
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
|
Brian Childs
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Forms under different screen resolutions - Help pleaseI have created an application with quite busy forms. I develop the When I run the application on screens of other resolutions, with other Am I missing a setting somewhere which allows re-configuration for Thanks In Advance Brian |
Brian Child
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Re:Forms under different screen resolutions - Help pleaseI have created an application with quite busy forms. I develop the When I run the application on screens of other resolutions, with other Am I missing a setting somewhere which allows re-configuration for Thanks In Advance Brian |
datama
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Re:Forms under different screen resolutions - Help pleaseBrian Childs <br...@vizef.demon.co.uk> Quote
Screen-resolution and distorted form layout are common problems for many applications. Thers is no "magic" single line code to solve the problem, but here are some guidelines: 1. The Form's 'Scaled' property set to TRUE (Default) 2. Use only true-type fonts and restrict the number of fonts in use to a minimum. Also try to avoid large values for the font's size. 3. My experience is that grids and headerControls cause a lot of scaling troubles. I don't know why, but sometimes the column-headers in DBgrids scales wrong if you set font and attributes at design time. To solve this, set the grid's 'ParentFont' = TRUE. If you need other colors and fonts, put some code for these settings in the OnShow (or OnCreate) event. If you use headerControls, make sure that the sections always have the same width as the columns on the component it controls. 4. Make room around the components. If you design with 1024x768 and make some nice forms where field and labels are tight together, this will not look nice anymore on lower resolutions. It looks like the components climb on each other. 5. Try to minimum the use of different colors. Remember that the color- settings (i.e clWindow) could have any values on other machines. Then the total color-layout of the form could be very "phsycedelic" 6. Set the property 'Align' to some other value than alNone wherever you can. If you forget this, components will not always show up where expected. And more, the form layout will not scale properly when the form is resized (by the user). To simulate other resolutions, you can use the method changeScale(M,D) Hope this can help. Regards |
Jonas Ahlgre
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Re:Forms under different screen resolutions - Help pleaseI have seen several freeware components that resizes your forms (and regards Jonas Ahlgren |
dick Glove
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Re:Forms under different screen resolutions - Help pleaseI posted this a few days ago to another query, maybe this will help. Scaling Forms in Different Screen Resolutions I have tried various methods of managing form scaling in Delphi 1, and As each form is created, the following is called either on creation, or on Two Global variables are used: DesignWidth and DesignHeight, corresponding It is important to set some Form properties correctly: It is essential that you never open the Form in design mode in any other procedure ScaleForm(aform:TForm; awidth, aheight:Integer); begin { resize the form to correct resolution } { Repeat this block for each component type used in the form } end; ScaleForm is a general utility procedure, and you need just one copy in It is important to do the calculation (Left * Main.ScreenX) div ----------------------------------------------------------------- |
t..
![]() Delphi Developer |
Mon, 25 Jan 1999 03:00:00 GMT
Re:Forms under different screen resolutions - Help pleaseQuoteBrian Childs <br...@vizef.demon.co.uk> wrote: scalable fonts...this can cause problem when changing resolutions. JE McTaggart |
1. forms look different on different screen resolutions
2. Help - Forms and different screen resolutions (or font sizes)
3. Scaling Forms to different screen resolutions
4. Form changes when using different screen resolutions.
5. Form Resize in different Screen Resolution (Code Supplied)
6. CONTROLLING FORMS WITH DIFFERENT SCREEN RESOLUTION
7. How to scale forms to different screen resolution
8. How do I use different program icons for different screen resolutions