Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.89 KB

File metadata and controls

67 lines (54 loc) · 1.89 KB

AlignItemEdge

Description

Aligns the specified control item with other items having the same edge and alignment id values. To align several control items, call this function once for each item to be aligned using a common alignment id value.

{| class="wikitable_c" |+ Table - Alignment Options

! Index !! Alignment Edge
align="center"
align="center"
-
align="center"
align="center"
-
align="center"
align="center"
-
! Index !! Alignment Mode
-
align="center"
align="center"
-
align="center"
align="center"
}

Right alignment of objects will use the object with the minimum pixel value (=distance from the right) as the alignment baseline. Bottom and left alignment of objects will use the object with the maximum pixel value as the alignment baseline.

PROCEDURE AlignItemEdge(
				dialogID  : LONGINT;
				itemID    : LONGINT;
				whichEdge : LONGINT;
				alignID   : INTEGER;
				alignMode : INTEGER);
def vs.AlignItemEdge(dialogID, itemID, whichEdge, alignID, alignMode):
    return None

Parameters

Name Type Description
dialogID LONGINT The index of the dialog layout being defined.
itemID LONGINT The index of the control item to be aligned.
whichEdge LONGINT The control edge to be aligned.
alignID INTEGER An arbitrary number used to identify the items to be aligned together.
alignMode INTEGER Alignment mode of the operation

Remarks

Aligns layout items with the same edge and alignID. whichEdge: 1=right, 2=bottom, 3=left; alignMode: resize=0, shift=1

Right aligned objects are lined up with the object with the minimum pixel value. Bottom and left aligned objects are lined up on the maximum pixel value.[DWD 1/20/00]

Examples

mplexDialogLayout}}

Version

Availability: from VectorWorks 9.0

Category

  • Dialogs - Modern