Objectives: Accessibility and Globalization
Objectives: Accessibility and Globalization
Objectives
In this lesson, you will learn to:
• Identify the standard design guidelines for building accessibile applications
• Implement the standard accessibility options in Visual Basic .NET
• Identify the role of globalization and localization in designing world ready
applications
• Identify the factors related to globalized applications
• Create applications for multiple cultures
• Deploy application resources using satellite assemblies
• Describe the help system
• List the various files that constitute a help system
• Implement context-sensitive help
• Implement pop-up help
• Provide help for an application using tool-tips
Application Accessibility
• Application Accessibility refers to the usability and approachability of an
application for a wide audience, including those with special needs.
• Applications need to be built in such a way as to make the application as
accessible as possible to people with impairments or those with reduced
abilities due to aging.
Font Size All controls added to a form have the same font size
as the form by default.
Culture Codes
• The .NET Framework represents different cultures across the world using
either a two-letter code that specifies the language or a two-letter language
code followed by a dash and another two-letter-code that specifies the
region.
• Some culture codes and their descriptions are:
• En: Specifies English language, no region
• en-CA: Specifies English language, Canada
• fr-FR: Specifies French language, France
• De: Specifies German language, no region
• Zh-CN: Specifies Chinese language, China region
• de-DE: Specifies German language, Germany region
• Culture codes that only specify a language are called neutral cultures,
whereas culture codes that specify a language as well as the region are
called specific cultures.
Culture-specific Formatting
• The CultureInfo class has three members. These formatting members are:
• DateTimeFormat: Contains information about how dates and times are
formatted.
• NumberFormat: Contains information about how numbers and currency
are formatted.
• TextInfo: Contains information about how text is formatted.
• The properties of the above members can be changed for specific culture
formatting needs.
Unicode Support
• Different character sets needed to be used for representing data from
different cultures.
• Unicode provides a standard encoding scheme for characters of different
languages all over the world.
• Unicode assigns a unique numeric value, called a code point, to each
character used in the written languages of the world.
• Characters are represented in the .NET Framework using Unicode UTF-16
(Unicode Transformation Format, 16-bit encoding form) character encoding.
Application Resources
• A resource is any non-executable data that is logically deployed with an
application.
• A resource might be displayed in an application as error messages or as part
of the user interface.
• Examples of resources include strings displayed in the user interface based
on the culture settings of the system or a set of images.
• Packaging your localizable data in a resource file allows you to change the
data without recompiling your entire application.
Resource Assemblies
• Resource assemblies are assemblies that contain only resources.
• By placing all of your resources into a resource-only assembly, you can
update the assembly as and when you need without having to recompile
your application.
• When creating an application for multiple cultures, different sets of resources
are required to be created for different cultures.
• Satellite assemblies are resource assemblies that include separate resources
for different cultures.
Help Files
• A help system is made up of several different help files and components that
are created using HTML Help Workshop.
• Some of the files that make up a help system are:
• HTML Files
• Graphics and Multimedia Files
• Help Project Files
• Contents Files
• Index Files
• The HTML Help Workshop allows you create a help system with standard
features of any help system like:
• Table of Contents
• Index
Implementing Help
• The user should be able to access the help system by pressing the F1 key.
• A help system can be associated with your Windows application with the help
of the HelpProvider control.
• The HelpProvider control needs to be linked with a help file.
• Pop-up help can be provided in an application through the Help button, also
called the What’s This button.
• The Help button is displayed when the Maximize and Minimize buttons are
not there on the title bar.
• To display Help button on the title bar of a form, the following steps need to
be performed:
1. Set the MinimizeBox and MaximizeBox properties of the form to
False.
2. Set the HelpButton property of the form to True.
• To associate pop-up help with different controls on the form set the
HelpString on <HelpProvider Control> property of the controls to a string
that specifies the help text for the control.
Understanding Tool-tips
• A tool tip is a brief message for individual controls on a form.
• Tool tips are generally used for displaying help for toolbar icons.
• They can be displayed by using the Tooltip control present in the Toolbox.
• The user can access a tool tip by pointing at the control for which the tool tip
has been created.
Displaying Tool-tips
• To display a tool tip, you need to add a ToolTip control to the form and enter
the text in the ToolTipText property of the control for which the tool tip is to
be displayed.
• The ToolTipText property can be used to set the tool tip for a StatusBarPanel
control, a ToolBarButton control, and a selected tab.
• The following code is to set a tool tip text for a ToolBarButton control
programmatically:
ToolbarButton1.ToolTipText="Add a record"
• The SetToolTip() method of the ToolTip control is used to set the tool tip text
for a control.
• Some of the important properties of the ToolTip control are:
• Active
• AutomaticDelay
Summary
In this lesson, you learned that:
• Applications need to be made accessible so that they can be used by a wide
range of audience, including those with special needs.
• You need to follow a set of guidelines for developing accessible applications.
• The .NET Framework provides support for the development of world-ready
applications. It helps you create applications that adapt to different
languages, currency formats, date/time formats, and other culture-specific
information.
• When developing a world-ready application, the process should be divided
into three phases: globalization, localizability, and localization.
• While globalizing an application, you should strive to code the application in
such a way that allows it to work equally well for all cultures your application
supports.
• During the localizability phase, you test whether the application's executable
code has been properly separated from its resources.
Summary (Contd.)
• During localization an application is customized for specific cultures or
regions.
• Unicode provides a standard encoding scheme for characters of different
languages all over the world and hence helps in creating application for
multiple cultures and having a multilingual user interface.
• A resource is any non-executable data that is logically deployed with an
application.
• Visual Studio.NET allows the creation of three types of help systems:
• HTML Help
• Pop-up Help
• Tool Tips
• The HelpProvider control is used to associate a Help file with an application.
• The Help file to be associated with the HelpProvider control is specified using
the HelpNamespace property of the HelpProvider control.
Summary (Contd.)
• The HelpKeyword property under the Misc category of a control is used to set
the keyword for retrieving Helphelp from the Help file specified in the
HelpNamespace property.