Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Form Designer    [ Add a report in this area ]  
Report #:  106320   Status: Need Feedback
VCL Controls anchored to right and/or bottom misbehave
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Matej Martelanc
Report Type:  Basic functionality failure Date Reported:  6/11/2012 5:45:36 AM
Severity:    Infrequently encountered problem Last Updated: 6/26/2012 7:22:21 PM
Platform:    All versions 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
I have a VCL form descending from other custom VCL forms with component anchored to bottom and right form edges.
Whenever I open the form in IDE,  the control moves by 4 points towards top and left edges. If I then save it, new component position is saved as well.

The form in package (TfrmBase_AnchorTest) is needed to see new custom form properties in object inspector.
The form TfrmCustom_AnchorTest in AnchorTest.dpr is the ancestor form for all the other forms in project and descendant of TfrmBase_AnchorTest.
Steps to Reproduce:
1. Extract attached files to new folder
2. Add Design subfolder to system path (there will be design time package binaries)
3. Build package Pkg_AnchorTest_R16.dpk
3. Build package Pkg_AnchorTest_D16.dpk
4. Install Pkg_AnchorTest_D16.dpk
5. Open project AnchorTes.dpr and form foAnchorTest.pas in IDE
6. Remember TOP and LEFT properties of two edit components
6. Save the form and close it
7. Open it again. The TOP and LEFT properties of two edit components gets decremented each time one opens the form in IDE.



Workarounds
None
Attachment
Anchors.zip
Comments

Tomohiro Takahashi at 6/11/2012 11:09:39 PM -
I can not reproduce your issue.
Could you please attach sample project to reproduce/confirm your issue?

What OS do you use, for example Windows 7 64bit etc...?
and, have you already installed any 3rd-party plugin?

Matej Martelanc at 6/13/2012 6:31:57 AM -
I have attached sample project with run-time package, design-time package and project.
I have also updated other info about the problem

Matej Martelanc at 6/13/2012 4:27:12 AM -
It is a bit more complex than I thought.
My form is descendant of another custom form.
I will prepare a test project but it will take me a while

Matej Martelanc at 6/13/2012 4:01:33 AM -
system:
  Windows 7 6.1 64bit (Build 7601: SP1)

delphi:
  Delphi XE2 and ... Update 4
  Help Update 4 ...

  Documentation Insight Express 2.0.3.251
  Compiler Speed Pack x86 XE2 4.7
  Compiler Speed Pack x64 XE2 4.7
  IDE Fix Pack XE2 4.7
  Embarcadero@ Quality Insight
  SmartBear AQtime Standard for Embarcadero RAD Studio XE and XE2
  IntraWeb XII

Tomohiro Takahashi at 6/11/2012 11:08:06 PM -
> [Description]
> ... anchored to bottom and right form edges. ...
> [Steps]
>  3. Set the component's anchors to bottom and left edge.
Which is used, right or left?

Matej Martelanc at 6/13/2012 3:52:17 AM -
It is right and bottom.
Sorry for mistake.

Tomohiro Takahashi at 6/13/2012 7:57:35 PM -
Did you change [Steps], [Attachments], right? To reproduce your issue, attached package projects you made are needed?

With simple VCL form and TLabel etc..., the issue does not occur?

Matej Martelanc at 6/14/2012 1:17:59 AM -
Yes.
In package there is only one form.
I need to register it so its properties are visible in object inspector in IDE.

Matej Martelanc at 6/26/2012 5:39:46 AM -
When can I expect any info regarding this problem?

I've noticed you decreased report severity. Does this mean it will be delayed until never?

It is a huge problem for me. I have quite big project based on inherited custom forms.
Can you tell me how to open a form in IDE without causing right or bottom anchored controls to be moved from designed position?

I really need to know what to do!
Can you at least find some workaround until you manage to fix it?


Tomohiro Takahashi at 6/26/2012 7:22:11 PM -
Is this a regression in Delphi XE2?
What about previous versions of Delphi?

As you know, QualityCentral is just for reporting area.
So, if you need more intensive support and official reply from Embarcadero, please contact technical support service first. Sorry for the inconvenience.
http://support.embarcadero.com/

Server Response from: ETNACODE01