Share via


Windows XP Media Center Edition SDK Using Triple-tap Mode 

banner art
Previous Next

Using Triple-tap Mode

The following example shows how to create an instance of the Triple-tap/Soft-keyboard control in the triple-tap mode. It uses the HTML OBJECT element to create the control, and puts the control in triple-tap mode by using a PARAM element to set the control's InputMode property to a value of 1 for triple-tap. The example uses a number of other PARAM elements to customize the appearance of the control. Parameters that begin with "Input" set the appearance of the text input box on the control. Parameters with names that begin with "TT" set the appearance of the character map that appears below the control's text input box.

  

For the control to work correctly in triple-tap mode, you must design your application so that the user can set the focus to the control by using a TV-style remote control. The simplest way to do this is to place the control inside a container element such as a SPAN or DIV, and then make that element focusable in the same way that other buttons on your page are focusable. Then, when the focus moves to the container element, you can programmatically move the focus to the control by using the HtmlInput.SetInputFocus method. You can indicate the location of the focus by adding a colored border around the container element. To programmatically remove the focus from the control, you can use the DHTML focus method to move the focus to another page element, such as the body.

See Also

Previous Next

© 2005 Microsoft Corporation. All rights reserved.