Ejemplo n.º 1
0
        public TextAreaHandler()
        {
            Control = new EtoTextView
            {
                Handler  = this,
                Delegate = new EtoDelegate {
                    Handler = this
                },
                AutoresizingMask      = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable,
                HorizontallyResizable = true,
                VerticallyResizable   = true,
                Editable   = true,
                Selectable = true,
                AllowsUndo = true,
                MinSize    = sd.SizeF.Empty,
                MaxSize    = new sd.SizeF(float.MaxValue, float.MaxValue)
            };
            Control.TextContainer.WidthTracksTextView = true;

            Scroll = new EtoScrollView
            {
                Handler               = this,
                AutoresizesSubviews   = true,
                HasVerticalScroller   = true,
                HasHorizontalScroller = true,
                AutohidesScrollers    = true,
                BorderType            = NSBorderType.BezelBorder,
                DocumentView          = Control
            };
        }
Ejemplo n.º 2
0
 public GridHandler()
 {
     ScrollView = new EtoScrollView {
         Handler               = this,
         HasVerticalScroller   = true,
         HasHorizontalScroller = true,
         AutohidesScrollers    = true,
         BorderType            = NSBorderType.BezelBorder
     };
 }
Ejemplo n.º 3
0
        public ScrollableHandler()
        {
            Enabled = true;
            Control = new EtoScrollView
            {
                Handler               = this,
                BackgroundColor       = NSColor.Control,
                BorderType            = NSBorderType.BezelBorder,
                DrawsBackground       = false,
                HasVerticalScroller   = true,
                HasHorizontalScroller = true,
                AutohidesScrollers    = true,
                DocumentView          = new FlippedView {
                    Handler = this
                }
            };

            // only draw dirty regions, instead of entire scroll area
            Control.ContentView.CopiesOnScroll = true;
        }