MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Skins


Skins You are working on a new Skin? Post it here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2004-08-21, 15:36   #1 (permalink)
Anonymous
Guest
 
Posts: n/a


Default control id question

What is the purpose of the control ids?
When I add a new control can I pick an arbitraty number for the id? Does it have to be unique in that one window, or across the whole application?

I'm diving into making a touchscreen friendly version of the MCE skin, so i think you can expect a whole bunch of questions from me. I'll be a guru soon enough though.
  Reply With Quote
Old 2004-08-21, 16:10   #2 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 36
Posts: 1,513
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

control id's are used by mediaportal to make a connection
between the layout (defined in the xml files) and the
functionality (defined in the sourcecode)

Say you have a play button with id = 4
then in the source code i know that if a button with id=4 is pressed
that we should start playing the file

Quote:
When I add a new control can I pick an arbitraty number for the id?
Yes you can since a 'new control' has no functionality yet in the sourcecode.
However make sure you dont use an id which already is used in the xml file

Quote:
Does it have to be unique in that one window
In general yes. The idea is that id's are unique in one window
However not all controls have functionality behind it
(think of the background image) so you'll see that those ids
can be used more then once

Frodo
frodo is offline   Reply With Quote
Old 2004-08-21, 16:22   #3 (permalink)
Anonymous
Guest
 
Posts: n/a


Default

and for the controls for actions such as play and stop etc... Does the id for the control matter? Isn't it the action that is used to decide to play or stop etc..?
  Reply With Quote
Old 2004-08-21, 18:22   #4 (permalink)
Retired Team Member
 
Join Date: Apr 2004
Age: 34
Posts: 821
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

yes it matters.
Each button needs it's own ID to make it possible to make the Onleft, Onright Onup and Ondown items.
YO\ou tell MP to wich button or controll you wanna go to when going up,down.left or right.
This needs each button to be unique
__________________
MrMario64 is offline   Reply With Quote
Reply

Bookmarks

Tags
control, question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
facadeView control Question falkyre Plugins 2 2007-01-07 16:26
Entering TVSetup -> Manual Control seems to trigger EPG grabber dutch_ pre 1.0 RC1 0 2006-11-16 15:30
Remote Control question davejp MediaPortal 1 Talk 2 2005-12-24 12:15
Finally a Fix for MPexTuneCMD with DTV Control. bitbyte Tips and Tricks 1 2005-10-16 13:24
an external control question patpotlood Improvement Suggestions 0 2005-05-20 16:49


All times are GMT +1. The time now is 18:44.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress