Command Prompt for Windows




Setting an Items Style

The Style window is used to specify the details of your dialog box or your dialog box item. To display the Style window for a dialog box or a dialog box item either double clicking on the dialog box or the dialog box item, or select the dialog box or the dialog box item and then select the Style menu option. For example, the style window for a dialog box is displayed as follows :-

The Title field is where you specify the caption for a dialog box or the text displayed by a dialog box item.

The ID field is a unique value which specifies the identifier for either a dialog box or a dialog box item. The identifier is used to refer to the item from with in a batch file. As items are added to a dialog box they are automatically given the next available identifier, however, should the identifier assigned to a dialog box or a dialog box item need to be changed it can be set from the ID field in the respective style window.

Push button style

A push button as a rectangular area that can include identifying text inside the rectangle.

Select the Standard type to define a button containing text. When the user presses the button, the procedure associated with the button is called.

Select the Default type to define a default button containing text. It's identical to a push button, but also includes a bold border indicating that it's the default response when the user presses Enter.

Radio button style

A radio button is a small, circular button that has identifying text to the right. When a radio button is selected, the circle is filled with a solid dot and all other mutually exclusive choices are turned off. It's a batch files responsibility to clear or fill the dots for all the radio buttons.

Radio buttons must appear in groups. Usually, a group of radio buttons presents the user with a group of mutually exclusive options. When a the user clicks a radio button, the procedure associated with the radio button is called.

Radio buttons do not include any settable styles.

List box style

A list box is a rectangle containing a list of text strings. A user can browse through the list box and select one of the text strings. When the user clicks on a text string in the list box, the procedure associated with the list box is called.

Select the Sort type to define a list box which displays all the text strings in alphabetical order.

Check box style

A check box is a small, rectangular button that has identifying text to the right. The box is automatically marked with an X when it's selected. When a the user clicks a check box, the procedure associated with the check box is called. Unlike radio buttons, the batch file is not responsible for clearing or setting the X's for a check box.

Check boxes do not include any settable styles.

Group box style

A group box is a rectangular frame that visually groups buttons or other items together. A group box can also include a caption in the upper left corner of the group box.

A group box is a static item and does interact with the user.

Group boxes do not include any settable styles.

Combo box style

A combo box is a combination of a list box and a static item or an edit text item. When a the user makes a selection in the list box part of the combo box, the procedure associated with the combo box is called. When a user alters the static item or the edit text item part of the combo box the procedure associated with the combo box is not called.

Select the Simple type if you want the drop-down list to always expand to display items in the list. The user can edit the items in the list.

Select the Drop-Down type if you want the combo box to consist of a single line of editable text when the dialog box is first displayed. The user can click the down arrow to expand the list, and edit all items in the list.

Select the Drop-Down List if you want the combo box to work just like a drop down combo box, but contain a static list instead of an editable list. The user can select an item in the list, but can't change anything.

Edit text style

An edit text item is a rectangle which allows the user enter text from the keyboard. No procedure is ever called for an edit text item.

Select the Left type to align text to the left.

Select the Right type to align text to the right.

Select the Centre type to centre text.

Static text style

A static text item is a rectangular area which contains text. When specifying the text you can underline a character by preceding it with an ampersand (&).

Static text is a static item and does not interact with the user. No procedure is ever called for a static text item.

Select the Left type to display text flush left within the item border. This is the default. If there are multiple lines of text, words that extend beyond the line wrap to the next line.

Select the Right type to display text flush right within the item border. If there are multiple lines of text, words that extend beyond the line wrap to the next line.

Select the Centre type to display text centred within the item border. If there are multiple lines of text, words that extend beyond the line wrap to the next line.

Black Frame style

A black frame is an empty frame with a solid outline.

A frame is a static item and does not interact with the user. No procedure is ever called for a frame item.

Select the White type to display an empty frame with a solid outline that's the colour of the current window background. The default colour for the window background is white.

Select the Grey type to display an empty frame with a solid outline that's the colour

of the current screen background (desktop). The default colour for the desktop is grey.

Select the Black type to display an empty frame that's the colour of the current window frame colour. The default colour for window frames is black.

Black rectangle style

A black rectangle is a filled-in rectangle.

A rectangle is a static item and does not interact with the user. No procedure is ever called for a rectangle item.

Select the White type to display a filled-in rectangle that uses the current window background colour. The default colour for the window background is white.

Select the Gray type to display a filled-in rectangle that's the colour of the current screen background (desktop). The default colour for the desktop is Gray.

Select the Black type to display a filled-in rectangle that's the same colour as the current window frame colour. The default colour for window frames is black.