Inheritance: System.Windows.Forms.NativeWindow
Esempio n. 1
0
        public LynnTextbox()
        {
            this.ImeMode = ImeMode.On;

            if (UIManager.Enabled)
            {
                this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
                native  = new NativeBorder(this, 0x85 /* WM_NCPAINT */);
            }
        }
Esempio n. 2
0
        public LynnTextbox()
        {
            this.ImeMode = ImeMode.On;

            if (UIManager.Enabled)
            {
                this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
                native = new NativeBorder(this, 0x85 /* WM_NCPAINT */);
            }
        }
Esempio n. 3
0
        public LynnCombobox()
        {
            native = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
            native2 = new NativeBorder(this, 0x85 /* WM_NCPAINT */, true, false);

            base.DrawMode = DrawMode.OwnerDrawFixed;
            this.IntegralHeight = false;

            stringFormat = new StringFormat(StringFormatFlags.NoClip | StringFormatFlags.NoWrap);
            stringFormat.LineAlignment = StringAlignment.Center;
            stringFormat.Trimming = StringTrimming.EllipsisCharacter;
            stringFormat.HotkeyPrefix = System.Drawing.Text.HotkeyPrefix.None;
            OnFontChanged(EventArgs.Empty);
        }
Esempio n. 4
0
        public LynnCombobox()
        {
            native  = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
            native2 = new NativeBorder(this, 0x85 /* WM_NCPAINT */, true, false);

            base.DrawMode       = DrawMode.OwnerDrawFixed;
            this.IntegralHeight = false;

            stringFormat = new StringFormat(StringFormatFlags.NoClip | StringFormatFlags.NoWrap);
            stringFormat.LineAlignment = StringAlignment.Center;
            stringFormat.Trimming      = StringTrimming.EllipsisCharacter;
            stringFormat.HotkeyPrefix  = System.Drawing.Text.HotkeyPrefix.None;
            OnFontChanged(EventArgs.Empty);
        }