Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
what i want to do:
have only two container controls to cycle thru. list/thumb. have an option to show/hide media info.
so when hidden i want the container control to stretch to fullscreen.
the problem with zoom animation is it sizes all controls inside.
so basically i want conditional width/height. for me width only.
is this possible now with only two containers to cycle thru? i don't see how.
Posts: 1,881
Joined: Aug 2007
Reputation:
1
2009-01-16, 17:30
(This post was last modified: 2009-01-16, 17:40 by skunkm0nkee.)
It depends on how you want the option to work. If the option is controlled on a separate screen then you could do it via a conditional include. You couldn't have the button for toggling it on the same screen as the containers though as the conditional include would only be evaluated when the window opens.
(This is kind of how the list view in MediaStream works, if thumbs is turned on then they are shown, if not then the title is expanded to fill the area)
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The conditionals on the containers (vis conditions) are checked and updated whenever the directory listing (winxml or mediawindow) is refreshed, so if you can pull off doing that when the "toggle mediainfo" is performed, then using conditionals on the containers should do the trick I think?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
there is a container.refresh i could add to the <onclick> but if it's a plugin or a really large list i didn't want a delay or for the selection to reset.
i looked at the zoom animation, was lost so i don't think i can add a stretch animation, but i can try.
edit: i should say this will be a button on the same window as the list.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
it seems Container.Refresh works good. the selection does not change. so since i couldn't figure out the stretch animation, this will have to do.
i still think a stretch animation could be useful, since plugins have to be recalled.
thanks for the help.