Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Visual Form Inheritance    [ Add a report in this area ]  
Report #:  78843   Status: Need Feedback
Form inheritance problem in projects migrated to D2010. Works fine in previous versions.
Project:  Delphi Build #:  14.0.3513.24210
Version:    14.0 Submitted By:   Sergey Mogilnikov
Report Type:  Crash / Data loss / Total failure Date Reported:  10/21/2009 6:18:09 AM
Severity:    Critical / Show Stopper Last Updated: 9/22/2010 12:20:12 AM
Platform:    All platforms Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description

Projects with inherited forms migrated to D2010 have the following problems:

1. At design time, form sizes are incorrect (smaller than in previous versions)
2. At runtime, autosized elements such as TLabel have an incorrect size.
Steps to Reproduce:
1. Create a new project in Delphi 7.
2. Set the base form's WindowsState property to wsMaximized.
3. Place TLabel and set its properties as follows: WordBreak = true, Align = alTop, AutoSize = True.
3. Create a descendant form and assign its Label1.Caption property a long multi-line text.
4. Make the descendant form as the main application form.
5. Compile and run to see results.
6. Open this project in D2010, compile and run it.
7. Compare the resulting forms in D7 and D2010.
Workarounds
None
Attachment
78843.zip
Comments

Markus Humm at 11/18/2009 4:01:43 AM -
Marked as "needs attention"

Markus Humm at 9/21/2010 1:26:24 PM -
Has this been tested in Delphi XE already? Might be fixed there but nobody yet noticed?

Tomohiro Takahashi at 9/22/2010 12:19:34 AM -
> 1. At design time, form sizes are incorrect (smaller than in previous versions)
Is this issue same as(similar to) QC#86704 ?

Server Response from: ETNACODE01