DtvLong dal_men_dra_lin (idm, ro1, co1, ro2, co2)

Draws a horizontal or vertical separating line in the menu.

Input Parameters Significance
DtvLong idm menu Id
DtvLong ro1 starting row position [0 = from beginning]
DtvLong co1 starting olumn position [0 = from beginning]
DtvLong ro2 end row position [0 = to end]
DtvLong co2 end column position [0 = to end]

Output Parameters Significance
no -

Return Code Significance
0 no error
1 wrong row position
2 wrong column position
-1 zero Id

Only create separating lines in the menu after you filled it will all required items.

When you create a horizontal line, DataView locks the item at the specified row position. Any existing item entry is displayed in the center of the row.

Thus you create a non-selectable item. It is used to logically separate selectable items in a menu and forms some kind of »heading« for a group of items. This can help the user to orientate espacially in longer menus.

Example:

Horizontal line in 5th row as long as the menu width:

Vertical line for column display at 10th column as long as the menu length:

The function automatically invoke any set Menu listener function.