Possible button labels in XML?
Hi
There is a possibility to predefine actions connected to certain buttons into the XML.
I'm thinking to this line: "<btn target=10 key="right">Forward</btn>"
My problem is that I could not find a complete list of the possible key elements. The example contains left, right, and enter. There should be more since a basic sideshow device has at least up/down, menu and a back button.
Is there a complete list of the possible labels somewhere? (I could not find it in the MSDN)
Regards,
Barna Csenteri
Barna,
Since Up/Down are used for in-page navigation they cannot be used for button keys.
The 'back' key is a special case that can only be used in Dialog Pages (to capture a 'cancel' event for example).
Hi
>Since Up/Down are used for in-page navigation they cannot be used for button keys.
Are you sure about that?
It's logic but I haven't seen anything about this in the documentation.
Until now I found this cases:
<btn key="Enter" target="10">Yes</btn>
<btn key="Back" target="11">No</btn>
<btn target=10 key="right">Forward</btn>
<btn key="left" target="1">
I treat every button press in the same way - doesn't matter if it's dialog page or whatever - it's a link to a page when a given button is pressed.
By the way - do You know any gadget which send's dialogs?
I would like to test the dialog on my LCD's and I don't know any.
Regards,
Barni
Hi,
The documentation for the 'btn' element in the Windows SDK explains that Up, Down and Menu (although are part of the enum that is used for accepted values) have fixed functions and cannot be used for anything else. When I was developing the i-mate Windows SideShow Debugger I ensured that Up, Down and Menu could not be used.
Regarding dialogs, there aren't any gadgets that I am aware of that use these pages. If you just knock up a simple gadget that sends a dialog it will give you an idea of what can be achieved.
-james
James is correct; you can override only LEFT, RIGHT, ENTER and BACK. Note that BACK can be overriden on any page to provide a custom back behavior. In order to ensure a good and consistent user experience, UP and DOWN are always reserved for scrolling within a page, and MENU always provides a context menu.
Dan