Return to package dfl. www.dprogramming.com

module dfl.listbox

classes
ListBox ListControl
enums
SelectionMode

ListBox
public class ListBox: ListControl
{
public static class ObjectCollection {
public void add(Object value); public void add(char[] value); public void addRange(Object[] range); public void addRange(char[][] range); public this(ListBox lbox); public this(ListBox lbox, Object[] range); public this(ListBox lbox, char[][] range);
}

public static class SelectedIndexCollection {

public bool contains(int idx); public int indexOf(int idx); public int length();    [property getter] public int opApply(int delegate(inout int) dg); public int opIndex(int idx); public this(ListBox lb);
}

public static class SelectedObjectCollection {

public bool contains(char[] str); public bool contains(Object obj); public int indexOf(char[] str); public int indexOf(Object obj); public int length();    [property getter] public int opApply(int delegate(inout Object) dg); public int opApply(int delegate(inout char[]) dg); public Object opIndex(int idx); public this(ListBox lb);
}

public final void beginUpdate(); public void borderStyle(BorderStyle bs);    [property setter] public BorderStyle borderStyle();    [property getter] public final void clearSelected(); protected ObjectCollection createItemCollection(); protected override void createParams(inout CreateParams cp); protected override Size defaultSize();    [property getter] public void drawMode(DrawMode dm);    [property setter] public DrawMode drawMode();    [property getter] public final void endUpdate(); public final int findString(char[] str, int startIndex); public final int findString(char[] str); public final int findStringExact(char[] str, int startIndex); public final int findStringExact(char[] str); public final int getItemHeight(int idx); public final Rect getItemRectangle(int idx); public final bool getSelected(int idx); public final int horizontalExtent();    [property getter] public final void horizontalExtent(int he);    [property setter] public final bool horizontalScrollbar();    [property getter] public final void horizontalScrollbar(bool byes);    [property setter] public final int indexFromPoint(Point pt); public final int indexFromPoint(int x, int y); public final void integralHeight(bool byes);    [property setter] public final bool integralHeight();    [property getter] public final void itemHeight(int h);    [property setter] public final int itemHeight();    [property getter] public final ObjectCollection items();    [property getter] public final void multiColumn(bool byes);    [property setter] public final bool multiColumn();    [property getter] protected void onDrawItem(DrawItemEventArgs dieh); protected override void onHandleCreated(EventArgs ea); protected void onMeasureItem(MeasureItemEventArgs miea); protected override void onReflectedMessage(inout Message m); protected override void prevWndProc(inout Message msg); public final void scrollAlwaysVisible(bool byes);    [property setter] public final bool scrollAlwaysVisible();    [property getter] public override void selectedIndex(int idx);    [property setter] public override int selectedIndex();    [property getter] public final SelectedIndexCollection selectedIndices();    [property getter] public final void selectedItem(Object o);    [property setter] public final Object selectedItem();    [property getter] public final void selectedItem(char[] str);    [property setter] public final SelectedObjectCollection selectedItems();    [property getter] public override void selectedValue(char[] str);    [property setter] public override void selectedValue(Object val);    [property setter] public override Object selectedValue();    [property getter] public void selectionMode(SelectionMode selmode);    [property setter] public SelectionMode selectionMode();    [property getter] public final void setSelected(int idx, bool byes); public void sort(); public final void sorted(bool byes);    [property setter] public final bool sorted();    [property getter] public this(); public final void topIndex(int idx);    [property setter] public final int topIndex();    [property getter] public final void useTabStops(bool byes);    [property setter] public final bool useTabStops();    [property getter] protected override void wndProc(inout Message msg); public const int DEFAULT_ITEM_HEIGHT; public Event(ListBox,DrawItemEventArgs) drawItem; public Event(ListBox,MeasureItemEventArgs) measureItem; public const int NO_MATCHES;

}

ListControl
public abstract class ListControl: ControlSuperClass
{
public override Color backColor();    [property getter] public static Color defaultBackColor();    [property getter] public static Color defaultForeColor();    [property getter] public override Color foreColor();    [property getter] public final char[] getItemText(Object item); protected void onSelectedIndexChanged(EventArgs ea); protected void onSelectedValueChanged(EventArgs ea); public abstract int selectedIndex(); public abstract void selectedIndex(int idx); public abstract Object selectedValue();    [property getter] public abstract void selectedValue(char[] str); public abstract void selectedValue(Object val); public this(); public Event(ListControl,EventArgs) selectedValueChanged;
}

SelectionMode
public enum SelectionMode: ubyte
{
	ONE,
	NONE,
	MULTI_SIMPLE,
	MULTI_EXTENDED,
}