Example
import dfl.all;
void main() {
auto form = new Form;
form.dockPadding.all = 5;
auto currentListBox = new ListView;
currentListBox.dock = DockStyle.FILL;
form.controls.add(currentListBox);
currentListBox.items.add("Text 1");
currentListBox.items.add("Text 2");
Application.run(form);
}
TODO
items is ListViewItemCollection? ... cant find doc
module dfl.listview;
{
public final int index;
[property getter]
public final ListView listView;
[property getter]
public int opCmp(char[] val);
public int opCmp(Object o);
public final char[] text;
[property getter]
public final char[] text;
[property setter]
public final HorizontalAlignment textAlign;
[property getter]
public final HorizontalAlignment textAlign;
[property setter]
public final int width;
[property getter]
public final int width;
[property setter]
}
{
public final ListViewItem item;
[property getter]
Inherited members
empty
}
{
public final ListViewItem item;
[property getter]
public final char[] label;
[property getter]
Inherited members
empty
}
{
public final ItemActivation activation;
[property setter]
public final ItemActivation activation;
[property getter]
public final ListViewItem addRow(char[][] rowstrings...);
public final BorderStyle borderStyle;
[property setter]
public final BorderStyle borderStyle;
[property getter]
public final void clear();
public final ColumnHeaderCollection columns;
[property getter]
public final ListViewItem focusedItem;
[property getter]
public final Rect getItemRect(int index,ItemBoundsPortion ibp);
public final bool gridLines;
[property setter]
public final bool gridLines;
[property getter]
public final ListViewItemCollection items;
[property getter]
public final bool labelEdit;
[property setter]
public final bool labelEdit;
[property getter]
public final bool labelWrap;
[property setter]
public final bool labelWrap;
[property getter]
public final SelectedItemCollection selectedItems;
[property getter]
public final void sort();
public final int delegate(ListViewItem, ListViewItem) sorter;
[property getter]
public final int sorter;
[property setter]
public final SortOrder sorting;
[property getter]
public final SortOrder sorting;
[property setter]
public final View view;
[property getter]
public final View view;
[property setter]
protected void wndProc(ref Message m);
Inherited members
backColor
backColorChanged
bottom
bounds
bringToFront
bringUpOne
canFocus
canSelect
capture
click
clientRectangle
clientSize
contains
containsFocus
contextMenu
contextMenuChanged
controlAdded
ControlCollection
controlRemoved
controls
createControl
createControlsInstance
created
createGraphics
createHandle
createParams
cursor
cursorChanged
defaultBackColor
defaultFont
defaultForeColor
defaultSize
defWndProc
delayInvoke
destroyHandle
disable
disableVisualStyle
displayRectangle
dispose
disposed
dock
doubleClick
enable
enabled
enabledChanged
findForm
focus
focused
font
fontChanged
foreColor
foreColorChanged
fromChildHandle
fromHandle
getAutoScaleSize
getChildAtPoint
getStyle
getTopLevel
gotFocus
handle
handleCreated
handleDestroyed
hasChildren
hasLayout
hasLayoutChanged
height
helpRequested
hide
initLayout
invalidate
invoke
invokeRequired
isHandleCreated
isMnemonic
keyDown
keyPress
keyUp
layout
left
location
lostFocus
modifierKeys
mouseButtons
mouseDown
mouseEnter
mouseHover
mouseLeave
mouseMove
mousePosition
mouseUp
mouseWheel
move
name
onBackColorChanged
onClick
onContextMenuChanged
onControlAdded
onControlRemoved
onCursorChanged
onDisposed
onDoubleClick
onEnabledChanged
onFontChanged
onForeColorChanged
onGotFocus
onHandleCreated
onHandleDestroyed
onHasLayoutChanged
onHelpRequested
onKeyDown
onKeyPress
onKeyUp
onLayout
onLostFocus
onMouseDown
onMouseEnter
onMouseHover
onMouseLeave
onMouseMove
onMouseUp
onMouseWheel
onMove
onPaint
onPaintBackground
onParentChanged
onReflectedMessage
onResize
onRightToLeftChanged
onSystemColorsChanged
onTextChanged
onVisibleChanged
opCmp
opEquals
paint
parent
parentChanged
performLayout
pointToClient
pointToScreen
preProcessMessage
processKeyEventArgs
processMnemonic
recreateHandle
recreatingHandle
rectangleToClient
rectangleToScreen
redraw
refresh
region
resetBackColor
resetCursor
resetFont
resetForeColor
resetRightToLeft
resetText
resize
resizeRedraw
resumeLayout
right
rightToLeft
rightToLeftChanged
select
selectNextControl
sendBackOne
sendToBack
setBounds
setBoundsCore
setClientSizeCore
setStyle
setVisibleCore
show
size
supportsMouseTracking
suspendLayout
systemColorsChanged
tabStop
tag
text
textChanged
top
topLevelControl
toString
update
updateStyles
visible
visibleChanged
width
wndProc
zIndex
}
{
public void add(Control ctrl);
public int length;
[property getter]
public int opApply(int delegate(ref Control) dg);
public int opIndex;
[property getter]
protected final Control owner;
[property getter]
public void remove(Control ctrl);
}
{
public final Rect bounds;
[property getter]
public final bool checked;
[property setter]
public final bool checked;
[property getter]
public final int index;
[property getter]
public final ListView listView;
[property getter]
public int opCmp(Object o);
public int opCmp(char[] val);
public final bool selected;
[property getter]
public final bool selected;
[property setter]
public final ListViewSubItemCollection subItems;
[property getter]
public final Object tag;
[property setter]
public final Object tag;
[property getter]
public final char[] text;
[property getter]
public final char[] text;
[property setter]
}
{
public void add(char[] s);
public void insert(int index,char[] s);
}
{
public int opCmp(char[] val);
public int opCmp(Object o);
public final char[] text;
[property getter]
public final char[] text;
[property setter]
}