| |||||||
| Skins You are working on a new Skin? Post it here! |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Apr 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
| Hi Is it possible to create a new type of control in references.xml that contains several controls? i.e. is this possible? Code:
<control>
<type>MyNewControl</type>
<control>
<type>button</type>
...
</control>
<control>
<type>label</type>
...
</control>
<control>
<type>image</type>
...
</control>
</control>
I want to be able to create 5 "MyNewControl" controls on a screen, but I'm trying to avoid copying and pasting the xml 5 times. Thanks |
| | |
| | #2 (permalink) |
| Retired Team Member | no, you can't. But you can make a new xml file called common.buttons.xml for example. The you can include in other xml's like <include>common.buttons.xml</include> and the contents of the file will be put in the spot of the include. The common.buttons.xml does need to be a valid xml file so you have to have: <window> <controls> put stuff here </controls> </window> |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Apr 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
| Thanks for the info. I have already created another xml file as you mentioned. Out of interest, whats the difference between using <include></include> and <import></import> to include xml from other screen files? Does <import> place the xml somewhere differently within the file? |
| | |
| | #4 (permalink) | |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| Quote:
| |
| | |
| | #6 (permalink) | |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| Quote:
. | |
| | |
![]() |
| Bookmarks |
| Tags |
| controls, referencesxml |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MediaPortalEditor - New BETA Release Avaiable | hamheed | Skins | 51 | 2007-06-24 16:58 |
| NVIDIA Decoder icon and controls | ivankurac3 | Tips and Tricks | 1 | 2006-05-01 21:07 |
| Movie controls not easily selected | juzz | General Support | 0 | 2006-04-03 12:12 |
| Need some help... moving controls | zombiepig | General Development (no feature request here!) | 0 | 2005-04-04 01:38 |
| Keyboard shortcut extensions for MCE style remote controls | mPod | General Development (no feature request here!) | 17 | 2005-03-02 22:00 |