public TextControl()
        {
            view = new DocumentView(new DocumentViewSurface(this));

            SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ContainerControl |
                ControlStyles.ResizeRedraw
                , true);
        }
示例#2
0
        public TextControl()
        {
            view = new DocumentView(new DocumentViewSurface(this));

            SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ContainerControl |
                ControlStyles.ResizeRedraw 
                , true);
        }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (null != graphics)
         {
             graphics.Dispose();
             graphics = null;
         }
         view = null;
     }
 }
示例#4
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (null != graphics)
         {
             graphics.Dispose();
             graphics = null;
         }
         view = null;
     }
 }
 public ViewControlTrace(DocumentView host)
 {
     this.host = host;
     enabled = true;
 }
 public RenderStuff(DocumentView host)
     : this()
 {
     this.host = host;
 }
示例#7
0
 public RenderStuff(DocumentView host)
     : this()
 {
     this.host = host;
 }
示例#8
0
 public ViewControlTrace(DocumentView host)
 {
     this.host = host;
     enabled   = true;
 }