[archived content]
import dfl.all;

void main() {
        auto form = new Form;
        form.dockPadding.all = 5;

        auto currentListBox = new ListBox;
        currentListBox.dock = DockStyle.FILL;
        form.controls.add(currentListBox);

        auto currentLabel = new Label;
        currentLabel.text = "Label!";
        currentListBox.items.add(currentLabel);

        currentLabel = new Label;
        currentLabel.text = "Label 2!";
        currentListBox.items.add(currentLabel);

        Application.run(form);
}

module dfl.listbox;
public class ListBox: ListControl
{
public final void beginUpdate();
public BorderStyle borderStyle; [property setter]
public BorderStyle borderStyle; [property getter]
public final void clearSelected();
protected ObjectCollection createItemCollection();
protected void createParams(ref CreateParams cp);
public const int DEFAULT_ITEM_HEIGHT;
protected Size defaultSize; [property getter]
public Event drawItem(ListBox,DrawItemEventArgs);
public DrawMode drawMode; [property setter]
public DrawMode drawMode; [property getter]
public final void endUpdate();
public final int findString(char[] str);
public final int findString(char[] str,int startIndex);
public final int findStringExact(char[] str);
public final int findStringExact(char[] str,int startIndex);
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 int horizontalExtent; [property setter]
public final bool horizontalScrollbar; [property getter]
public final bool horizontalScrollbar; [property setter]
public final int indexFromPoint(Point pt);
public final int indexFromPoint(int x,int y);
public final bool integralHeight; [property getter]
public final bool integralHeight; [property setter]
public final int itemHeight; [property setter]
public final int itemHeight; [property getter]
public final ObjectCollection items; [property getter]
public Event measureItem(ListBox,MeasureItemEventArgs);
public final bool multiColumn; [property setter]
public final bool multiColumn; [property getter]
public const int NO_MATCHES;
protected void onDrawItem(DrawItemEventArgs dieh);
protected void onHandleCreated(EventArgs ea);
protected void onMeasureItem(MeasureItemEventArgs miea);
protected void onReflectedMessage(ref Message m);
protected void prevWndProc(ref Message msg);
public final bool scrollAlwaysVisible; [property setter]
public final bool scrollAlwaysVisible; [property getter]
public int selectedIndex; [property getter]
public int selectedIndex; [property setter]
public final SelectedIndexCollection selectedIndices; [property getter]
public final char[] selectedItem; [property setter]
public final Object selectedItem; [property getter]
public final Object selectedItem; [property setter]
public final SelectedObjectCollection selectedItems; [property getter]
public Object selectedValue; [property getter]
public Object selectedValue; [property setter]
public char[] selectedValue; [property setter]
public SelectionMode selectionMode; [property setter]
public SelectionMode selectionMode; [property getter]
public final void setSelected(int idx,bool byes);
public void sort();
public final bool sorted; [property getter]
public final bool sorted; [property setter]
public final int topIndex; [property getter]
public final int topIndex; [property setter]
public final bool useTabStops; [property setter]
public final bool useTabStops; [property getter]
protected void wndProc(ref Message msg);
[+] Inherited members
}
public static class ListBox.ControlCollection
{
public void add(Control ctrl);
public bool contains(Control ctrl);
public int indexOf(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 void removeAt(int i);
}
public class ListControl: Control
{
public Color backColor; [property getter]
public static Color defaultBackColor; [property getter]
public static Color defaultForeColor; [property getter]
public Color foreColor; [property getter]
public final char[] getItemText(Object item);
protected void onSelectedIndexChanged(EventArgs ea);
protected void onSelectedValueChanged(EventArgs ea);
public int selectedIndex; [property getter]
public int selectedIndex; [property setter]
public char[] selectedValue; [property setter]
public Object selectedValue; [property setter]
public Object selectedValue; [property getter]
public Event selectedValueChanged(ListControl,EventArgs);
[+] Inherited members
}
public static class ListControl.ControlCollection
{
public void add(Control ctrl);
public bool contains(Control ctrl);
public int indexOf(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 void removeAt(int i);
}
public enum SelectionMode;

Page last modified on July 03, 2008, at 10:38 PM