Return to package dfl. www.dprogramming.com

module dfl.listbox

classes
ListBox ListControl
enums
SelectionMode

ListBox
public class ListBox: ListControl
{
public static class ObjectCollection: IList {
public void add(char[] value); public void add(Object value); public void addRange(char[][] range); public void addRange(Object[] range); public void addRange(ObjectCollection range); public void clear(); public Array clone(); public bool contains(char[] value); public bool contains(Object value); public void copyTo(Array dest, int destIndex); public int count();    [property getter] public final Array dup();    [property getter] public IEnumerator getEnumerator(); public int indexOf(char[] value); public int indexOf(Object value); public void insert(int index, Object value); public void insert(int index, char[] value); public bool isFixedSize();    [property getter] public bool isReadOnly();    [property getter] public bool isSynchronized();    [property getter] public Object opIndex(int index);    [property getter] public void opIndexAssign(Object value, int index);    [property setter] public void remove(char[] value); public void remove(Object value); public void removeAt(int index); public Object syncRoot();    [property getter] public this(ListBox lbox, char[][] range); public this(ListBox lbox); public this(ListBox lbox, ObjectCollection range); public this(ListBox lbox, Object[] range);
}

public static class SelectedIndexCollection {

public bool contains(int idx); public int count();    [property getter] public int indexOf(int idx); public bool isReadOnly();    [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(Object obj); public bool contains(char[] str); public int count();    [property getter] public int indexOf(Object obj); public int indexOf(char[] str); public bool isReadOnly();    [property getter] public int opApply(int delegate(inout char[]) dg); public int opApply(int delegate(inout Object) dg); public Object opIndex(int idx); public this(ListBox lb);
}

public final void beginUpdate(); public BorderStyle borderStyle();    [property getter] public void borderStyle(BorderStyle bs);    [property setter] public final void clearSelected(); protected ObjectCollection createItemCollection(); protected override void createParams(inout CreateParams cp); protected override Size defaultSize();    [property getter] public DrawMode drawMode();    [property getter] public void drawMode(DrawMode dm);    [property setter] public final void endUpdate(); public final int findString(char[] str); public final int findString(char[] str, int startIndex); 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 void horizontalExtent(int he);    [property setter] public final int horizontalExtent();    [property getter] 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 int itemHeight();    [property getter] public final void itemHeight(int h);    [property setter] 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 prevWndProc(inout Message msg); public final void scrollAlwaysVisible(bool byes);    [property setter] public final bool scrollAlwaysVisible();    [property getter] public override int selectedIndex();    [property getter] public override void selectedIndex(int idx);    [property setter] 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(Object val);    [property setter] public override Object selectedValue();    [property getter] public override void selectedValue(char[] str);    [property setter] public SelectionMode selectionMode();    [property getter] public void selectionMode(SelectionMode selmode);    [property setter] public final void setSelected(int idx, bool byes); public final void sorted(bool byes);    [property setter] public final bool sorted();    [property getter] public this(); public final int topIndex();    [property getter] public final void topIndex(int idx);    [property setter] public final bool useTabStops();    [property getter] public final void useTabStops(bool byes);    [property setter] protected override void wndProc(inout Message msg); public const int DEFAULT_ITEM_HEIGHT; public DrawItemEventHandler drawItem; public MeasureItemEventHandler measureItem; public const int NO_MATCHES;

}

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

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