Example #1
0
        public MprObjGrd(string id_rpt_obj, ObjectSection s)
        {
            ID = null;
            IDReport = id_rpt_obj;
            Name = "Grid" + DateTime.Now.ToLongTimeString();
            Category = ObjectCategory.Grid;
            Section = s;
            Index = 0;
            Printed = true;
            Type = ObjectType.Static;
            RotateAngle = 0;

            Rows = "";
            RowsSQL = "";
            Width = 1000;
            Location = new Point(0, 0);
            RowHeight = 70;
            ColumnHeaderHeight = 90;
            ColumnFooterHeight = 90;
            ColumnHeaderPrinted = true;
            ColumnFooterPrinted = true;
            Columns = new Collection<MprObjGrdCol>();
            TextStyle = new MprStlTxt();
            BoxStyle = new MprStlRect();
        }
Example #2
0
        public MprObjTxtFld(string id_rpt_obj, ObjectSection s)
        {
            ID = null;
            IDReport = id_rpt_obj;
            Name = "TextField" + DateTime.Now.ToLongTimeString();
            Category = ObjectCategory.TextField;
            Section = s;
            Index = 0;
            Printed = true;
            Type = ObjectType.Static;
            RotateAngle = 0;

            Text = "TextField" + DateTime.Now.ToLongTimeString();
            TextSQL = "";
            Location = new Point(0, 0);
            Size = new System.Drawing.Size(500, 70);
            TextStyle = new MprStlTxt();
            Shape = ObjectShape.Rectangle;
            RectangleStyle = new MprStlRect();
            EllipseStyle = new MprStlEllp();
        }
Example #3
0
        public MprObjGrdCol()
        {
            Category = ColumnCategory.Text;
            RowCellStyle = GridCellStyle.GridStyle;
            WidthType = ColumnWidthType.Constant;
            WidthConstant = 300;
            WidthPercent = 25;

            HeaderCellStyle = GridCellStyle.HeaderStyle;
            HeaderType = ObjectType.Static;
            HeaderText = "Column" + DateTime.Now.ToLongTimeString();
            HeaderTextSQL = "";
            HeaderTextStyle = new MprStlTxt();
            HeaderBoxStyle = new MprStlRect();

            FooterCellStyle = GridCellStyle.FooterStyle;
            FooterType = ObjectType.Static;
            FooterText = "Column" + DateTime.Now.ToLongTimeString();
            FooterTextSQL = "";
            FooterTextStyle = new MprStlTxt();
            FooterBoxStyle = new MprStlRect();
        }
Example #4
0
 void DrawTxtFld(string txt, int x, int y, int width, int height, MprStlTxt stlTxt, ObjectShape shape, MprStlRect stlRect, MprStlEllp stlEllp)
 {
     if (shape == ObjectShape.Rectangle)
     {
         DrawRect(x, y, width, height, stlRect);
     }
     else
     {
         DrawEllp(x, y, width, height, stlEllp);
     }
     DrawTxt(txt, x, y, width, height, stlTxt);
 }
Example #5
0
        void DrawTxt(string txt, int x, int y, int width, int height, MprStlTxt stlTxt)
        {
            SetBRUSH(stlTxt);
            SetSTRF(stlTxt);
            SetRECTANGLE(x, y, width, height);

            G.DrawString(txt, stlTxt.Font, BRUSH, RECTANGLE, STRF);
        }
Example #6
0
 void SetSTRF(MprStlTxt stl)
 {
     STRF.FormatFlags = 0;
     if (stl.DirectionRightToLeft) STRF.FormatFlags |= StringFormatFlags.DirectionRightToLeft;
     STRF.Alignment = stl.Alignment;
     STRF.LineAlignment = stl.LineAlignment;
 }
Example #7
0
 void SetBRUSH(MprStlTxt s)
 {
     BRUSH.Color = s.Color;
 }