Bug Report T126908
Visible to All Users

Components located in a frame get negative Left and Top property settings

created 11 years ago

Hi,

with latest version I noticed that when I open my form with frame in it, my components inside of frame gets negative position. Attached sample application. To reproduce just open Unit1, you will see that all components frmContactNotification1 got negative position. When you save the file positions are recalculated to normal positions, but when you close/open the file you will get the same result again.

Comments (1)
DevExpress Support Team 11 years ago

    Thank you for your report. I have reproduced the described behavior and forwarded this ticket to our developers for research.

    Answers approved by DevExpress Support

    created 11 years ago (modified 11 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (3)
      RP RP
      Raimundas Packevicius 11 years ago

        Thanks for the patch, but I get error compiling:
        [DCC Error] dxLayoutControl.pas(3291): E2003 Undeclared identifier: 'cxMaxRectSize'

        DevExpress Support Team 11 years ago

          It seems that the development has "gone too far" and there are too many changes in our sources to provide patches. If the issue is critical to you, please try the following changes in the cxGeometry.pas unit:

          Delphi
          cxGeometry:  const cxInvalidRect: TRect = (Left: -1; Top: -1; Right: -1; Bottom: -1); cxSimpleRect: TRect = (Left: 1; Top: 1; Right: 1; Bottom: 1); cxInvalidPoint: TPoint = (X: -1; Y: -1); cxSimplePoint: TPoint = (X: 1; Y: 1); cxInvisiblePoint: TPoint = (X: -10000; Y: -10000); cxMaxRectSize = MaxInt div 2;  //.....  procedure cxRectMinMaxInit(var AMin, AMax: Integer); begin AMin := cxMaxRectSize; AMax := -1; end;

          However, I recommend that you wait for the new official VCL 14.1.3 release that we are going to prepare pretty soon.

          RP RP
          Raimundas Packevicius 11 years ago

            Thanks, I will wait for the official release.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.