Best web hosting site - 1226 Accessibility Chapter 24 Property Purpose AccessibleRole Member
1226 Accessibility Chapter 24 Property Purpose AccessibleRole Member of the AccessibleRoleenumeration. Represents the role of this control in the application this information might help the accessibility client application determine what actions it should take. IsAccessible Contains a boolvalue specifying whether the control is visible to accessibility client applications. Fi Fig. 24.12 Fig. 24.12Fig. 24.1Fi2g. 24.12g.242.1 Properties of class Controlrelated to accessibility. (Part 2 of 2.) The application in Fig. 24.13 uses a text-to-speech control, tab stops and class Control s accessibility-related properties. It consists of a form with three Labels, three TextBoxes and a Button, enabling a user to submit the information. Submitting the information simply terminates the application the application is intended only to demonstrate the use of the text-to-speech control. The accessibility features in this program work as follows: When the mouse is over a Label, the text-to-speech control prompts the user to enter the appropriate information in the TextBoxlocated to the right of the Label. If the mouse is over a TextBox, the contents of the TextBoxare spoken. Lastly, if the mouse is over ButtonSubmit, the user is told that the button should be clicked to submit the information. The tab order is the following: The TextBoxes where the user inputs the name, phone number and password, then the Button. The Labels and text-to-speech control are not included in the tab order, because the user cannot interact with them, and their inclusion would serve no purpose. The accessibility properties are set so that accessibility client applications will obtain appropriate information about the controls. Please note that only the relevant code generated by Visual Studio .NET is included in Fig. 24.13. To use the text-to-speech control, first add it to the Toolbox. This is accomplished by selecting Customize Toolbox from the Tools menu. The Customize Toolbox dialog pops up check the box next to the TextToSpeech Class option. Click OK to dismiss the dialog box. The VText control now is in the ToolBox and can be dragged onto a form int he same way that any other control. The application has three Labels that prompts for the user s name, phone number and password. Three corresponding TextBoxes accept the user s input and, a Buttonallows the user to submit the form. Line 25 declares a text-to-speech control named speaker. We want the user to hear audio descriptions of controls when the mouse is located over those controls. Lines 112 139 define the controls_MouseHover event handler we attach this method to the three TextBoxes and the Button as the event handler for the MouseHoverevent. 1 // Fig. 24.13: TextToSpeech.cs 2 // Providing audio for people with visual impairments. 3 4 using System; 5 using System.Drawing; Fig. 24.13 Fig. 24.1FiFig. 24.13g. 24.13 Fig. 24.13 Application with accessibility features. (Part 1 of 4.)
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.