Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/MDI Support    [ Add a report in this area ]  
Report #:  82177   Status: Open
Bug in Form Inheritance in combination with MDIChild forms.
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.0 Submitted By:   Bob Swart
Report Type:  Basic functionality failure Date Reported:  2/16/2010 5:13:26 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   288025
Resolution: None (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
ExplicitWidth and ExplicitHeight values are ignored in MDIChild forms, when ancestor form is a "normal" form with ClientHeight and Width values.
Steps to Reproduce:
If you open this project "Inheritance" and then specifically the uFather,
then you will notice that the form is not shown: the caption seems to be empty
(and you may see a border of the form, but without content).

The Object Inspector shows ClientHeight = 0 and ClientWidth = 115 for the form.


The problem is caused by the fact that the root form TGrantFather is of normal type,
but the child form (called TFather - this was part of a bigger app) is a MDIChild.

The DFM file contains the following size definitions for TGrandFather:

  ClientHeight = 337
  ClientWidth = 635

But for TFather it contains only:

  ExplicitWidth = 651
  ExplicitHeight = 375

And these properties seem to be ignored when the form type is MDIChild.
Workarounds
Rebuilding the project seems to update the designer? (very strange, but it works)
Attachment
82177.zip
Comments

shraga Milon at 10/6/2011 12:41:46 AM -
I have this same problem :-(
Very Annoying
Why there is no update for this bugs ?
Shraga

Server Response from: ETNACODE01