Example #1
0
        public override int GetHorzPadding(ListBoxItemObjectInfoArgs e)
        {
            //change width between items
            int result = base.GetHorzPadding(e);

            return(result + indent);
        }
        protected override void DrawItemText(ListBoxItemObjectInfoArgs e)
        {
            base.DrawItemText(e);

            if (_textSelectionDataProvider != null)
            {
                TextSelectionData ts = _textSelectionDataProvider.GetTextSelection(e.ItemText);

                if (ts != null)
                    Painter.TextSelection = ts;
                else
                    Painter.TextSelection = null;
            }


            if (Painter.TextSelection != null)
            {
                Painter.DrawTextSelection(e.ItemText, 4, new ControlGraphicsInfoArgs(e.ViewInfo, e.Cache, e.Bounds));
            }
        }
 protected override void DrawItemBar(ListBoxItemObjectInfoArgs e)
 {
     DrawItemBarCore(e);
 }
 protected override void DrawItemBar(ListBoxItemObjectInfoArgs e)
 {
     e.PaintAppearance.FillRectangle(e.Cache, e.Bounds);
 }
 protected override void DrawItemBar(ListBoxItemObjectInfoArgs e)
 {
     DrawItemBarCore(e);
 }
Example #6
0
        public override int GetVertPadding(ListBoxItemObjectInfoArgs e)
        {
            int result = base.GetVertPadding(e);

            return(result + indent);
        }
Example #7
0
        protected override Rectangle CalcItemTextRectangle(ListBoxItemObjectInfoArgs e)
        {
            //change the left margin here

            return(Rectangle.Inflate(e.TextRect, -GetHorzTextIndent(e) - customLeftIndent, 0));
        }