PartTypes

The basic ADM language allows the creation of a simple .adm file that either creates a VALUENAME of REG_DWORD type with a value of 1 or removes the value completely. Using the following modifiers can provide additional options.

TEXT

Displays a line of static (label) text. No associated registry value exists for this part type. The TEXT part type accepts no type-specific data. This is useful for displaying a description.

The only valid keyword for TEXT is END.

EDITTEXT

Displays an edit field that accepts alphanumeric text. The text is set in the registry with the REG_SZ type. The EDITTEXT part type accepts the following options:

The valid keywords for EDITTEXT are:

COMBOBOX

Displays a combo box. The COMBOBOX part type accepts the same options as EDITTEXT, as well as the following option:

SUGGESTIONS. Begins a list of suggestions to be placed in the drop-down list. SUGGESTIONS are separated with spaces and must be enclosed by double quotation marks when a value includes spaces. The list ends with END SUGGESTIONS.

For example:

SUGGESTIONS
  Alaska Alabama Mississippi "New York"
END SUGGESTIONS

CHECKBOX

Displays a check box. The value is set in the registry with the REG_DWORD type. The value will be nonzero if the check box is selected by the user and zero if it is cleared. The CHECKBOX part type accepts the following options:

The default behavior of a check box is to write the value 1 to the registry if it is selected and 0 if it is cleared. VALUEON and VALUEOFF are used to override this behavior. For example, the following option writes "Fred" to the registry when the check box is selected.

VALUEON "Fred" 

The following option writes the value 12 to the registry when the check box is cleared.

VALUEOFF NUMERIC 12

The valid keywords for CHECKBOX are:

DROPDOWNLIST

Displays a combo box with a drop-down list style. The user can choose from only one of the entries supplied. The main advantage of a combo box with a drop-down list is that a number of extra registry edits can be specified, based on the user's selection. The DROPDOWNLIST part type accepts the ITEMLIST and REQUIRED options.

The valid keywords for DROPDOWNLIST are:

LISTBOX

Displays a list box with Add and Remove buttons. This is the only part type that can be used to manage multiple values under one key. The VALUENAME option cannot be used with the LISTBOX part type because there is no single value name associated with this type. By default, only one column appears in the list box, and for each entry a value is created whose name and value are the same. For instance, a "Fred" entry in the list box would create a value named fred whose data was "fred".

The LISTBOX part type accepts the following options:

The valid keywords for LISTBOX are: