Defining Controls

This section provides the mandatory properties and syntax for each control and provides sample resource files that illustrate examples of control definitions. ResCompiler can be used to create and define the following resources:

Visual PRO/5 Controls

 

 

Button

Image (element)

List Edit

Check Box

INPUTE

Radio Button

Custom Edit

INPUTN

Scroll Bar

Edit

Line (element)

Static Text

Grid

List Box

Tab

Group Box

List Button

Tool Button

Lines and images are considered elements. Although their display properties can be defined, they cannot interact with other controls, forms, child windows, or other resources.

The Resource Properties Index identifies and describes the optional properties for all controls contained this section.

Mandatory Control Properties

The following properties are mandatory for all controls except the line element:

Property

Description

control_type

Specifies the control type, for example, EDIT, BUTTON, CHECKBOX.

control-id

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

"title"

Title of the control, contained in quotation marks.

x

Horizontal position of the upper-left corner of the control in current units.

y

Vertical position of the upper-left corner of the control in current units.

width

Width of the control in current units.

height

Height of the control in current units.