Exemple #1
0
        public TextCtrl(Window parent, Rect rect, string title, StyleFactory factory, string style) :
            base(rect, title, factory, style)
        {
            parent.RegisterChild(((Window)this));

            if (null == font)
            {
                font      = parent.WindowFont;
                fontColor = parent.FontColor;
            }

            rect.X1 += parent.Size.X1;
            rect.Y1 += parent.Size.Y1;
            rect.X2 += parent.Size.X1;
            rect.Y2 += parent.Size.Y1;

            content = "";
        }
Exemple #2
0
 public Button(Window parent, Rect rect, string title, StyleFactory factory) : this(parent, rect, title, factory, "button")
 {
 }
Exemple #3
0
 public Window(Rect rect, string title, StyleFactory factory) : this(rect, title, factory, "window")
 {
 }
Exemple #4
0
 public ProgressBar(Window parent, Rect rect, string title, StyleFactory factory) : this(parent, rect, title, factory, "progressBar")
 {
 }
Exemple #5
0
 public TextCtrl(Window parent, Rect rect, string title, StyleFactory factory) :
     this(parent, rect, title, factory, "textctrl")
 {
 }