Hidden/Visible Animation when grouplist is scrolling?
#1
Does anyone know of a way to trigger an animation when a grouplist scrolls to the next item?

I have a horizontal grouplist with arrows on the side to show that there is more content offscreen to scroll to. I want to hide those arrows whilst the grouplist is scrolling.

For a normal list control I would use something like <visible>!Container(9000).OnNext</visible> and then have a delayed non-reversible visible fade animation, but that doesn't seem to work with a grouplist control.

Does anyone have any tricks/hacks for for this?
Reply
#2
just an idea

<visible>!Container.Scrolling</visible>
Reply
#3
(2019-02-06, 06:38)mardukL Wrote: just an idea

<visible>!Container.Scrolling</visible>

Nup. I already tried that and it didn't work. I also tried OnScrollNext which didn't work either.
Reply
#4
Depending on what you trying to achieve, maybe you can use System.IdleTime(1) to detect input while the grouplist is focused...
So it'd be something like:
Code:
<visible>!ControlGroup(id).HasFocus() | [ControlGroup(id).HasFocus() + System.IdleTime(1)]</visible>

Did you try setting a hidden scrollbar and then using his visibility while scrolling?
And I guess you could use static container too, then Container.Scrolling should work fine...
Reply
#5
Yeah I did try system.idletime - it works, but not really suitable as it is a group list containing multiple panel controls, so there is movement even when not scrolling.

Using a hidden scrollbar sounds like a really clever idea. I'll give it a go when I'm back home.
Reply
#6
(2019-02-06, 23:18)jurialmunkey Wrote: Yeah I did try system.idletime - it works, but not really suitable as it is a group list containing multiple panel controls, so there is movement even when not scrolling.

Using a hidden scrollbar sounds like a really clever idea. I'll give it a go when I'm back home.
 Unsure about the state, but i came across a similiar issue, where i want to trigger animation "OnNext/Previous "

As this are not working working
Container(id).OnNext
Container(id).OnScrollNext
Container(id).OnPrevious
Container(id).OnScrollPrevious
Container(id).Scrolling

I use Animations , for your case i think a fade should work.
Unsure if you use horizontal, or vertical.
Im going with "column()" for horizontal.
( For vertical Layout Container(id).Row(row), should be fine )

For Anim
<animation effect="fade" start="0" end="100" time="300" condition="Container(50).Column(0)" reversible="false">conditional</animation>
<animation effect="fade" start="0" end="100" time="300" condition="Container(50).Column(1)" reversible="false">conditional</animation>
<animation effect="fade" start="0" end="100" time="300" condition="Container(50).Column(2)" reversible="false">conditional</animation>
<animation effect="fade" start="0" end="100" time="300" condition="Container(50).Column(...)" reversible="false">conditional</animation>
           ....

But maybe a visible condition can do the the same,
so the "arrows" just show up if given column has focus.
<visible>Container(50).Column(...) + Integer.IsGreaterOrEqual(Container.NumItems(...))</visible>
Reply
#7
@mardukL - That is a clever idea, but it doesn't appear to work for grouplists. I did do something similar, but it meant that I had to give ever item in the grouplist an id:
Code:

<animation effect="fade" start="0" end="100" time="300" condition="ControlGroup(9000).HasFocus(5000)" reversible="false">conditional</animation>
<animation effect="fade" start="0" end="100" time="300" condition="ControlGroup(9000).HasFocus(6000)" reversible="false">conditional</animation>
<animation effect="fade" start="0" end="100" time="300" condition="ControlGroup(9000).HasFocus(7000)" reversible="false">conditional</animation>
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Hidden/Visible Animation when grouplist is scrolling?00