Пример #1
0
        public override void AddedToContainer()
        {
            base.AddedToContainer();

            Scrollbar = new VScrollbar();
            Scrollbar.Initialize();
            Scrollbar.Width = 15;

            var slot = AddNewSlot();

            PutDrawBoxInSlot(Scrollbar, slot);
            SizeChanged += delegate(object sender, Point oldSize, Point newSize)
            {
                Scrollbar.Height   = newSize.Y;
                Scrollbar.MaxValue = highestY - Height;
            };
        }
Пример #2
0
        public override void AddedToContainer()
        {
            iconSlot = AddNewSlot();
            icon     = new IconButton();
            icon.Initialize(category + "." + IconButton.DefaultCategory, file);
            PutDrawBoxInSlot(icon, iconSlot);
            icon.SetSize(Height, Height);
            icon.X      = Width - icon.Width;
            icon.Y      = 0;
            icon.Click += new DefaultEvent(icon_Click);

            scrollbarSlot = AddNewSlot();
            scrollbar     = new VScrollbar();
            scrollbar.Initialize(category + "." + VScrollbar.DefaultCategory, file);
            PutDrawBoxInSlot(scrollbar, scrollbarSlot);
            scrollbar.X         = Width - scrollbar.Width;
            scrollbar.Y         = TextFieldHeight;
            scrollbar.Activated = false;
        }
Пример #3
0
        public override void AddedToContainer()
        {
            Container.SizeChanged += new SizeChangedEvent(Container_SizeChanged);

            hSlot = AddNewSlot();
            HScrollbar hScrollbar = new HScrollbar();

            hScrollbar.Initialize(null, file);
            PutDrawBoxInSlot(hScrollbar, hSlot);
            hScrollbar.Activated = false;

            vSlot = AddNewSlot();
            VScrollbar vScrollbar = new VScrollbar();

            vScrollbar.Initialize(null, file);
            PutDrawBoxInSlot(vScrollbar, vSlot);
            vScrollbar.Activated = false;

            GoToDirectory(Environment.CurrentDirectory);
        }