Microsoft Windows Architecture for Developers Training Kit

Text Controls

There are two text controls: the UpDown Control and the Rich-Text Box.

Figure 12.7 The Up-Down control and the Rich Text Box

UpDown Control

An UpDown control is a small window that contains up and down arrows. It usually is used in combination with an edit control (also called the "buddy control") to create a spin box. The arrows allow the user to scroll through a list, which increments or decrements the values in the list. The user also can enter a value directly into the box instead of using the arrows. Spin boxes are typically used to display and edit values that have several components. For example, if you use a spin box to manipulate the date, you can update the components (day, month, or year) of the date value in the text box, depending on the component you select.

Rich-Text Box

A rich-text box is similar to a multiline edit control. In addition, it adds support for individual character and paragraph formatting.

The rich-text box provides the following functionality:

Категории