Desktop List Box
From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
A ListBox displays information in one or more columns and can be scrollable. Data can also be displayed in a hierarchical format.
AllowFocusRing - Indicates if the focus ring is drawn around the ListBox.
AllowResizableColumns - Indicates that columns can be resized by the user by dragging the separator in the column header. The ListBox must have a header in order for the columns to be resizable.
AllowAutoHideScrollbars - Used to hide the scrollbars until they are needed.
HasBorder - Specifies if the border appears or not.
CellAlignmentAt, CellAlignmentOffsetAt - Used to specify cell alignments for specific cells (Default, Left, Center, Right, Decimal via the DesktopListBox.Alignments enumeration). Use CellAlignmentOffset (or ColumnAlignmentOffsetAt) to control alignment for decimal values.
CellCheckBoxValueAt - Used to check or uncheck a checkbox that is in a cell.
ColumnAlignmentAt, ColumnAlignmentOffsetAt - Used to specify cell alignments for a column via the Alignments enumeration. Values are: Default, Left, Center, Right, Decimal). Use ColumnAlignmentAt (or ColumnAlignmentOffsetAt) to control alignment for decimal values.
ColumnCount - The number of columns.
ColumnWidths - A text string that specifies the widths to use for all the columns. You can specify widths as fixed pixel sizes, percentages or even calculations.
DefaultRowHeight - The default row height for all the rows. All rows always have the same height.
HasHeader - Indicates that the ListBox should have a header. A header is required in order to sort and resize columns.
HeaderAt - When HasHeader is True, returns the header at the index passed.
InitialValue - A list of the initial values displayed in the List Box. Separate columns using tab characters. When HasHeading is True, the first row is the name of the headings.
SelectedRowIndex - The currently selected row in the ListBox. Returns -1 when no row is selected.
RequiresSelection - When True, a row remains selected even when the user clicks on an empty area of the ListBox.
RowCount - The number of rows in the ListBox.
SelectedRowValue - The value of the first column of the currently selected row.
RowExpandedAt - For hierarchical ListBoxes, indicates if the specified folder row is currently expanded.