Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In lua voice, how do you choose to express it in the checkbox?
In lua voice, how do you choose to express it in the checkbox?
radio buttons are used to represent a series of mutually exclusive options. These mutually exclusive items are often divided into several groups, and each group only allows users to select one option. Check boxes are similar to radio buttons, except that check boxes represent multiple choices, and users can select one or more options.

alignment of groups of controls in the dialog editor

press Ctrl and click the controls to be aligned, and select them at the same time. The last selected control is the alignment benchmark. After careful observation, the eight small boxes around it are solid, while the small boxes around other selected controls are hollow.

select Both of Make

Same

Size in the Layout menu to unify the control size, and the selected control size is the same as the benchmark control. Select the Left of Align in the Layout menu to align the left of all selected controls with the benchmark control. Select Align space

even Down in the Layout menu to make the vertical spacing of the selected controls equal.

use of radio buttons and check boxes

for the convenience of explanation, we assume that an MFC application based on dialog box has been created, and the project name is RadioAndCheckButton. Dialog box resources are added with two groups

. The first group box' Gender' contains two radio buttons' Male' and' Female'. The second group box is' hobby', which contains three check boxes of' football',' volleyball' and' blue ball', as shown in the following table: control type ID caption < /SPAN

> < /td> Other attribute Group box default gender default radio button IDC_SEX1 male group radio button IDC_SEX2 female default group box default hobby default check box IDC_HOBBY1 football default check box IDC_HOBBY2 volleyball default check box IDC_HOBBY3 blue ball default

Set the Tab

Order of the control

Click the TAB

order command under the Layout menu to set the Tab

Order

in the order of Tab

Order, all these controls will form a Group, starting with the control with the true Group attribute (including this control) and ending with the next control with the true group attribute (excluding this control). Only one radio button in the same group can be selected at the same time. For radio button controls generated by the resource editor, by default, Windows automatically handles the mutual exclusion relationship between the same group of controls.

specifically use radio buttons and check boxes

1. Call

CButton's member function SetCheck to set the selected state of radio buttons and check boxes. This member function takes a parameter of type integer, where means clearing the selected state of the selected button, and 1 means setting the selected state of the selected button. A parameter of 2 indicates that the three-state check box is set to an indeterminate state.

Tristate property of check box: create a tristate check box. In addition to being "checked" and "unchecked", the three-state check box can also be grayed out. Usually, the grayed-out state of a check box indicates that its selected state is uncertain. In many software installation programs, graying often means that only a part of the component is selected.