[archived content]

Example

import dfl.all;

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

        auto picture = new PictureBox;
        picture.image = new Bitmap("a.bmp");
        picture.dock = DockStyle.FILL;
        form.controls.add(picture);

        Application.run(form);
}

module dfl.picturebox;
public class PictureBox: Control
{
public BorderStyle borderStyle; [property setter]
public BorderStyle borderStyle; [property getter]
public final Image image; [property getter]
public final Image image; [property setter]
public Event imageChanged(PictureBox,EventArgs);
protected void onImageChanged(EventArgs ea);
protected void onPaint(PaintEventArgs ea);
protected void onResize(EventArgs ea);
protected void onSizeModeChanged(EventArgs ea);
public final PictureBoxSizeMode sizeMode; [property getter]
public final PictureBoxSizeMode sizeMode; [property setter]
public Event sizeModeChanged(PictureBox,EventArgs);
[+] Inherited members
}
public static class PictureBox.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 PictureBoxSizeMode;

Page last modified on July 04, 2008, at 04:24 AM