View Full Version : Slider for GAC Scrolling?
NeoMorph
August 6th, 2007, 03:44 AM
Is it possible to add a slider for scrolling through your gac results?
theguywiththefunnyhair
August 6th, 2007, 03:55 AM
Sure is!
Look at the NR variables produced by your GAC request. You should see MP.GACVAR.ScrollPosition where GACVAR is the variable you set up in your Lua when you definied the GAC. Use this variable for your slider var and it should be all good. Checkout the flatstyle .ccf for the other values you need and how to set it up.
Cheers
Dan
NeoMorph
August 6th, 2007, 04:56 AM
Weird... that's what I was doing and it wasn't working. I finally tracked it down to the button itself strangely renaming the variable.
I had entered the variable as "MP.GAC[8].ScrollPosition" and it renamed it as "MP.GAC[8].Scrollposition". Every time I changed it back it failed to stick.
In the end I deleted the entire slider and re-did it and it worked.
Thanks mate.
theguywiththefunnyhair
August 6th, 2007, 11:02 AM
Your problem may lie with the 8 in 'MP.GAC[8].ScrollPosition'.
I have run into trouble before using tables in the NR variable for a GAC, i found it was safer to stick with a simple name like 'PlayListGAC' or 'LibraryGAC' in the NetRemote environment.
Hope that helps
Dan
NeoMorph
August 6th, 2007, 11:37 AM
I'm hacking about with the core MCR_1024x768 panel that came with NR. That's why the gac is a table.
If you look at the entry I was talking about NRD was messing with the case of ScrollPosition. It lower cased the "P" which caused the problem. NR is very niggly about case being perfect... if it's spelled right but the case is wrong then NR throws a wobbly and refuses to do anything. I think I may have entered it wrong the first time but not the second time... but it remembered my first entry. When I used the drop-down list instead of typing the entry it found both upper and lower case versions.
Weird thing was that in the actual Compiled Action Line the case was correct even though the drop-down entry was the incorrect lower case.
Just a wierdo thing that happens I guess. Recreating it from scratch worked fine. I had spent a fruitless 90 minutes trying to figure out what was wrong with what I had coded following the help docs... except what I did was right bar the case errors being unfixable when I noticed them. I thought it was me getting the wrong end of the stick as usual. :)
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.