Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 12 total
Thread Animation and layouts
Tue, Apr 5 2016 9:47 AMPermanent Link

Matthew Jones

I am looking at having a number of panels on a scrollpanel, and they
may be variable height depending on options selected and content. I
figured it would be really nice to have them animate their height as
this changes. But in the automatic layout, the panel underneath jumps
immediately, and then the animation happens, and it looks a lot less
nice than I'd hope. Perhaps though I've missed some option that can be
deployed?

I've attached a simple demo - click the checkbox to see it happen.



Attachments: LayoutHeight.zip
Tue, Apr 5 2016 6:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

Care to elaborate ??

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Apr 6 2016 3:04 AMPermanent Link

Uli Becker

Tim,

<< Care to elaborate ?? >>

That's weird: on your website there is no content in Matthew's post (just the attachment). In my Newsreader (Thunderbird) I see this text:

<<
I am looking at having a number of panels on a scrollpanel, and they
may be variable height depending on options selected and content. I
figured it would be really nice to have them animate their height as
this changes. But in the automatic layout, the panel underneath jumps
immediately, and then the animation happens, and it looks a lot less
nice than I'd hope. Perhaps though I've missed some option that can be
deployed?

I've attached a simple demo - click the checkbox to see it happen.

--

Matthew Jones
>>

Uli
Wed, Apr 6 2016 3:42 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> That's weird: on your website there is no content in Matthew's post
> (just the attachment).

Thanks for saying that - it appears fine in both of my newsreaders.
I've inspected the HTML and nothing is hidden, the content just isn't
there.

See, newsreaders are the best. 8-)

--

Matthew Jones
Wed, Apr 6 2016 3:44 AMPermanent Link

Malcolm Taylor

+1  Surprised
Wed, Apr 6 2016 8:27 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Thanks for saying that - it appears fine in both of my newsreaders. I've inspected the HTML and nothing is hidden, the content just isn't there.

See, newsreaders are the best. 8-) >>

Not quite - you're posting from XanaNews was MIME-encoded, and for some reason the proper MIME headers aren't being set or the NNTP server isn't parsing them properly.  I'll have to analyze the whole thing later today when I have time.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Apr 6 2016 8:46 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

> I'll have to analyze the whole
> thing later today when I have time.

Obviously not a priority. I will post the projects in a follow-up
instead in future.

--

Matthew Jones
Thu, Apr 7 2016 2:38 AMPermanent Link

Matthew Jones

Matthew Jones <matthew@mattNOSP-AMhew-jones.com> wrote:
> I am looking at having a number of panels on a scrollpanel, and they
> may be variable height depending on options selected and content. I
> figured it would be really nice to have them animate their height as
> this changes. But in the automatic layout, the panel underneath jumps
> immediately, and then the animation happens, and it looks a lot less
> nice than I'd hope. Perhaps though I've missed some option that can be
> deployed?
>
> I've attached a simple demo - click the checkbox to see it happen.
>

Last night I realised I'm probably an idiot. In a separate thought, maybe I
should tell it to animate the Top property too, if I want that animated!

It also made me think it would be nice to have a global "animations off/on"
function that told animation code to just complete instantly. Handy at
startup and for those who get giddy from movement.

--
Matthew Jones
Thu, Apr 7 2016 4:04 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

>  maybe I
> should tell it to animate the Top property too, if I want that
> animated!

And it does indeed work exactly as you would want. D'oh!

A way to stop all animation for a moment would still be good - I can't
see one obvious. (I realise it would be complicated, but perhaps just a
"jump to end state if global set" would be sufficient so that the
events still happen.)

--

Matthew Jones
Thu, Apr 7 2016 2:34 PMPermanent Link

Matthew Jones


> A way to stop all animation for a moment would still be good - I can't
> see one obvious. (I realise it would be complicated, but perhaps just a
> "jump to end state if global set" would be sufficient so that the
> events still happen.)
>

I showed my current work to the customer and they asked if the whizzing is
supposed to happen. This is the top animation that I set in the form that
is then parented. The animation is needed later but it is a pity to not be
able to preset it and control when it happens. Perhaps an animations active
property in the TAnimations object? Or a global. Anyway, I can code it. And
maybe that's better anyway. Make a routine to apply animation to a panel or
form and gain some consistency and a single place to update. Hmm.

--
Matthew Jones
Page 1 of 2Next Page »
Jump to Page:  1 2
Image