Пример #1
0
 public HCTableCell(HCStyle AStyle) : this()
 {
     FCellData    = new HCTableCellData(AStyle);
     FAlignVert   = View.AlignVert.cavTop;
     FBorderSides = new HCBorderSides();
     FBorderSides.InClude((byte)BorderSide.cbsLeft);
     FBorderSides.InClude((byte)BorderSide.cbsTop);
     FBorderSides.InClude((byte)BorderSide.cbsRight);
     FBorderSides.InClude((byte)BorderSide.cbsBottom);
     FBackgroundColor = AStyle.BackgroudColor;
     FRowSpan         = 0;
     FColSpan         = 0;
 }
Пример #2
0
 public HCEditItem(HCCustomData AOwnerData, string AText) : base(AOwnerData)
 {
     this.StyleNo = HCStyle.Edit;
     FText        = AText;
     FMouseIn     = false;
     FMargin      = 4;
     FCaretOffset = -1;
     Width        = 50;
     FBorderWidth = 1;
     FBorderSides = new HCBorderSides();
     FBorderSides.InClude((byte)BorderSide.cbsLeft);
     FBorderSides.InClude((byte)BorderSide.cbsTop);
     FBorderSides.InClude((byte)BorderSide.cbsRight);
     FBorderSides.InClude((byte)BorderSide.cbsBottom);
 }
Пример #3
0
 public HCEditItem(HCCustomData aOwnerData, string aText)
     : base(aOwnerData)
 {
     this.StyleNo   = HCStyle.Edit;
     FText          = aText;
     FPaddingLeft   = 4;
     FPaddingRight  = 4;
     FPaddingTop    = 4;
     FPaddingBottom = 4;
     FCaretOffset   = -1;
     Width          = 50;
     FPrintOnlyText = false;
     FBorderWidth   = 1;
     FBorderSides   = new HCBorderSides();
     FBorderSides.InClude((byte)BorderSide.cbsLeft);
     FBorderSides.InClude((byte)BorderSide.cbsTop);
     FBorderSides.InClude((byte)BorderSide.cbsRight);
     FBorderSides.InClude((byte)BorderSide.cbsBottom);
 }
Пример #4
0
        public static void SetBorderSideByPro(string aValue, HCBorderSides aBorderSides)
        {
            aBorderSides.Value = 0;
            string[] vStrings = aValue.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);

            for (int i = 0; i < vStrings.Length; i++)
            {
                if (vStrings[i] == "left")
                    aBorderSides.InClude((byte)BorderSide.cbsLeft);
                else
                if (vStrings[i] == "top")
                    aBorderSides.InClude((byte)BorderSide.cbsTop);
                else
                if (vStrings[i] == "right")
                    aBorderSides.InClude((byte)BorderSide.cbsRight);
                else
                if (vStrings[i] == "bottom")
                    aBorderSides.InClude((byte)BorderSide.cbsBottom);
                else
                if (vStrings[i] == "ltrb")
                    aBorderSides.InClude((byte)BorderSide.cbsLTRB);
                else
                if (vStrings[i] == "rtlb")
                    aBorderSides.InClude((byte)BorderSide.cbsRTLB);
            }
        }