예제 #1
0
        public ShapeWithScrollbar(IScrollableContainer SourceShape)
            : base()
        {
            Scrollable = new ScrollableContainer(SourceShape);
            VScroll = ScrollbarFactory.Instance.CreateVScrollbar(Scrollable.VRange);
            HScroll = ScrollbarFactory.Instance.CreateHScrollbar(Scrollable.HRange);
            BottomRightCorner = ScrollbarFactory.Instance.CreateRectangle();

            SuspendLayout = true;
            Add(Scrollable);
            Add(VScroll);
            Add(HScroll);
            Add(BottomRightCorner);
            SuspendLayout = false;
        }
        public ShapeWithScrollbar(IScrollableContainer SourceShape)
            : base()
        {
            Scrollable        = new ScrollableContainer(SourceShape);
            VScroll           = ScrollbarFactory.Instance.CreateVScrollbar(Scrollable.VRange);
            HScroll           = ScrollbarFactory.Instance.CreateHScrollbar(Scrollable.HRange);
            BottomRightCorner = ScrollbarFactory.Instance.CreateRectangle();

            SuspendLayout = true;
            Add(Scrollable);
            Add(VScroll);
            Add(HScroll);
            Add(BottomRightCorner);
            SuspendLayout = false;
        }
예제 #3
0
 public ScrollableContainer(IScrollableContainer Source)
     : base()
 {
     Content = Source;
 }
예제 #4
0
 public ScrollableContainer(IScrollableContainer Source)
     : base()
 {
     Content = Source;
 }