Movable containers in active template

Send us your feedback or ask for features.
mssngmrblz
Newbie
Posts:45
Joined:03 Feb 2013 15:08
Re: Movable containers in active template

Post by mssngmrblz » 29 Mar 2013 02:04

How can I make the Toggle move the same way as the container?

Joe Soap
Regular
Posts:475
Joined:07 Jul 2012 15:04

Re: Movable containers in active template

Post by Joe Soap » 29 Mar 2013 02:43

Take a look at the toggle code. See the values it addresses?

Compare those to Softcore's original Smart Container code that I ganked it from, then take a look at how I altered it to make it moveable on both togglestates.

You can use that information to make the toggle itself remember size and position on both its states :). So . . . you could resize the container and place the toggle wherever makes sense for either condition. It's not implemented in either version, left as an exercise for the reader - but it's fairly easy, a little experimentation will get you there quickly. Worth it too, it's elegant in use and fun to play with.

Container and toggle can remember (or not) both position and size for each toggle state with a little work.

http://liine.net/forum/viewtopic.php?f= ... =20#p10672
^ Softcore

http://liine.net/forum/viewtopic.php?f= ... =30#p11283
^ SoAPMoD

SC - for pitys sake man, will ya move yr modules into their own space so I don't have to go looking in AB's for 'em! :mrgreen:

Post Reply