Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScrollBar"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        protected ScrollBar(Base parent) : base(parent)
        {
            m_ScrollButton    = new ScrollBarButton[2];
            m_ScrollButton[0] = new ScrollBarButton(this);
            m_ScrollButton[1] = new ScrollBarButton(this);

            m_Bar = new ScrollBarBar(this);

            SetBounds(0, 0, 15, 15);
            m_Depressed = false;

            m_ScrollAmount        = 0;
            m_ContentSize         = 0;
            m_ViewableContentSize = 0;

            NudgeAmount = 20;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ScrollBar"/> class.
        /// </summary>
        /// <param name="parent">Parent control.</param>
        protected ScrollBar(ControlBase parent) : base(parent)
        {
            scrollButton    = new ScrollBarButton[2];
            scrollButton[0] = new ScrollBarButton(this);
            scrollButton[1] = new ScrollBarButton(this);

            bar = new ScrollBarBar(this);

            SetBounds(0, 0, 15, 15);
            depressed = false;

            scrollAmount        = 0;
            contentSize         = 0;
            viewableContentSize = 0;

            NudgeAmount = 20;
        }