Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCLX/TForm    [ Add a report in this area ]  
Report #:  10866   Status: Reported
TForm not addapt size to different font DPI
Project:  Delphi Build #:  8.1
Version:    7.0 Submitted By:   Karol Bieniaszewski
Report Type:  Issue Date Reported:  2/10/2005 12:32:11 AM
Severity:    Serious / Highly visible problem Last Updated: 2/23/2005 5:50:31 AM
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
TForm not addapt size to different font DPI. When my clients run applicatioon and in system have font dpi like 120 dpi all controls adapt size to this font buf form not!
Steps to Reproduce:
1. Create project with Form and on it some controls like TEdit.
2. Compile project.
3. Change screen fonts in Windows.
4. Restart system.
5. Run application from exe file not from IDE.
6. You see that not all controls is in arrea of Form (scrollbars are visible - but if you not set AutoScroll you can not reach all controls on the form.
  

Also is difference between VCL and CLX. Height of a form in VCL is without title bar but in CLX is with title bar.
Workarounds
None
Attachment
DPI error.zip
Comments

Jeremy North at 2/11/2005 3:55:05 PM -
Could you please attach a sample project that demostrates this.

thanks

Karol Bieniaszewski at 2/23/2005 5:49:46 AM -
Ok i attache sample project (DPI_issue.exe).
1. run this project (DPI_issue.exe) in standard 96 dpi Windows screen - you see all is ok
2. change dpi to e.g. 120. Restart system. Run project  - you see scroll bars :-(

Server Response from: ETNACODE01