Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TSizer Layout problem
Fri, Sep 30 2016 3:45 AMPermanent Link

thomh

Hi,

I set the following TSizer properties:

Orientation:
soHorizontal

Layout:
Consumption: lcTop
Position: lpBottomLeft
Stretch: lsRight

Save, close and reopen project/form

The TSizer.Layout resets itself to:

Consumption: lcBottom
Position: lpTopLeft
Stretch: lsRight

// Thom
Mon, Oct 3 2016 12:58 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< The TSizer.Layout resets itself to: >>

Got it - here's the hot fix:

WebSizer unit:

Replace the TSizer class declaration with this:

  TSizer = class(TSizerControl)
     protected
        function GetInterfaceClassName: String; override;
     published
        property Top;
        property Left;
        property Height;
        property Width;
        property AlwaysOnTop;
        property Animations;
        property Border;
        property Control;
        property Corners;
        property Constraints;
        property DisplayOrder;
        property InsetShadow;
        { This must come *before* the Layout property !!! }
        property Orientation;
        property Layout;
        property LayoutOrder;
        property Margins;
        property Opacity;
        property Padding;
        property Tag;
        property Visible;
        property OnAnimationComplete;
        property OnAnimationsComplete;
        property OnShow;
        property OnHide;
        property OnMove;
        property OnSize;
        property OnClick;
        property OnDblClick;
        property OnMouseDown;
        property OnMouseMove;
        property OnMouseUp;
        property OnMouseEnter;
        property OnMouseLeave;
        property OnTouchStart;
        property OnTouchMove;
        property OnTouchEnd;
        property OnTouchCancel;
     end;

Tim Young
Elevate Software
www.elevatesoft.com
Image