Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Animation Issue
Wed, Apr 6 2016 3:34 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

(might be related to Matthew's post : http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=9462#9462)

I have a basic panel with animations set on Height to 500ms (increasing this doesn't affect it) and Linear (changing this has no effect either)
.
The panel starts off at a height of 30, then I manually increase it as I add controls to it. This fires the animations just fine.

However, if I remove the controls and reduce the height back to the minimum in one move, no animation fires, it just reduces immediately.

I remove like this :

        if panelTimes.ControlCount>0 then
        begin
           while panelTimes.ControlCount>0 do
           begin
              panelTimes.Controls[0].Free;
           end;
           panelTimes.Height:=30;
        end;

and add like this :
           newLabel:=TLabel.Create(nil);
                 ... blah blah...
           panelTimes.Height:=controlCount*(newLabel.Height+10);

adding a variable number of labels and edit boxes each time.
Wed, Apr 6 2016 3:43 AMPermanent Link

Matthew Jones

Mine animates up and down in size, but the panel below jumps
immediately.

--

Matthew Jones
Wed, Apr 6 2016 8:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< However, if I remove the controls and reduce the height back to the minimum in one move, no animation fires, it just reduces immediately. >>

More than likely it's an issue with how the animation is processed in relation to other UI updates.  Please send me an email with a project that shows what you're trying to do, and I'll post here with how to fix it.

Tim Young
Elevate Software
www.elevatesoft.com
Image