ObjectDCL Banner

ListView_Arrange Method

Description

This method changes the layout of all the items.

Parameters

MyControlReference
Reference to the control in the form of MyProject_MyForm_MyControl.
ProjectFile
String identifying the project as it was passed in LoadProject.
DialogName
String identifying the dialog by name.
ControlName
String identifying the control by name.
nStyle
Integer specifying the layout style. The valid choices are:
  • 0 (Left) Aligns items along the left edge of the ListView
  • 1 (Top) Aligns items along the top edge of the ListView
  • 2 (Default) Aligns items according to the ListView's current alignment styles (the default value)
  • 3 (GridSnap) Snaps all icons to the nearest grid position

Return Values

Returns the following according to the situation:

  • T when successful.
  • Nil if the control is not found, does not support this function or if the style is not supported.

AutoLISP Syntax

The recommended convention is passing the control identifier directly:

CopyCode imageCopy Code
(Odcl_ListView_Arrange 
		MyControlReference [as Reference]
		nStyle [as Integer])

An alternative convention is to identify the control by providing the project file, the dialog name and the control name:

CopyCode imageCopy Code
(Odcl_ListView_Arrange
		ProjectFile [as String]
		DialogName [as String]
		ControlName [as String]
		nStyle [as Integer])

Applies For

BlockList, ListView.

Example

CopyCode imageCopy Code
; Change the layout
(Odcl_ListView_Arrange MyProject_MyForm_MyControl 1)