Re: Slider Control in Home Menus?

Aesculus <Aesculus.a0si5z-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
Exciting. Made some progress. I can now display two sliders on the
correct panel. :-)

I was hoping to have each of these labeled so that is my next pursuit.

34440

Here is the current code for posterity. I thought the 'text' would have
been the label so need to do some more investigation.

		push @menu, {
			slider => 1,
			min 	=> 30,
			max		=> 50,
			text	=> 'Left',
			#help    => NO_HELP_STRING_YET,
			adjust 	=> 1,
			initial	=> 40,
			actions	=> {
				do  => {
					player => 0,
					cmd    => [ 'avpSetChannels', $i ],
					params => {
						valtag => 'value',
					},
				},
			},
		};
		push @menu, {
			slider => 1,
			min 	=> 30,
			max		=> 50,
			text	=> 'Right',
			#help    => NO_HELP_STRING_YET,
			adjust 	=> 1,
			initial	=> 50,
			actions	=> {
				do  => {
					player => 0,
					cmd    => [ 'avpSetChannels', $i ],
					params => {
						valtag => 'value',
					},
				},
			},
		};
		$i++;

	my $numitems = scalar(@menu);

	$request->addResult("count", $numitems);
	$request->addResult("offset", 0);
	my $cnt = 0;
	for my $eachItem (@menu[0..$#menu]) {
		$request->setResultLoopHash('item_loop', $cnt, $eachItem);
		$cnt++;
	}
	
	$request->setStatusDone();


+-------------------------------------------------------------------+
|Filename: temp.jpg                                                 |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=34440|
+-------------------------------------------------------------------+


Chris
------------------------------------------------------------------------
Aesculus's Profile: http://forums.slimdevices.com/member.php?userid=14876
View this thread: http://forums.slimdevices.com/showthread.php?t=114452
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.