First, what I'd like to achieve:
I have a radio with presets controllable by IR that I'd like to control from XL. I aim to do this with a USB UIRT (on order but not yet arrived). I'd like to be able to switch radio channels via the presets (20 available, plenty for my need) and identify each preset by the station graphic. Punch the button and you change channel.
How to do it:
- Conceivably, I could set up 20 buttons with a station graphic each and a 'click' event that would execute a (learnt) IR command to switch the station. Straight forward stuff?
- However, I thought it would be more flexible to set up a new database with a structure that echoed my station organisation (e.g. top level ‘talk’, ‘rock’, ‘classical’ and within those, the stations I want). So I set up a ‘Radio’ database, linked to the station graphic (as coverart) and linked to the event (using the ‘advanced’ tab on the db edit panel).
My problem with the second approach is… I can get the nice navigation panel set up that shows the station logos under the categorisation just fine (as you would for the normal ‘music’ db) but:
- I can’t seem to get the associated event (linked to the db entry) to execute when the station is ‘pressed’ (clicked). (I can’t see an explicit way of setting up an execute event that is linked to a db entry.) Is there a way to do this?
- I can’t seem to display the current ‘nowplaying’ station ‘coverart’ anywhere else (as you would do for nowplaying>music in the music db). Is there anyway of doing this (I tried nowplaying>radio to no effect).
I’d love to be able to use the db feature this way but can’t see if this is possible (i.e. the documented features are only available for the standard music/movies databases and not for any special ones you set up with a different name, albeit that they have the same fields).
If I have to revert to the first approach, ok, nut it wont be as neat or fit into the user interface approach used in the rest of XL nearly as well.
Any feedback/help very gratefully received.
Thanks