Esempio n. 1
0
        public void AddTextToProgram(int CardNum, int iX, int iY, int iHeight, int iWidth, string strContent, int colorFont, bool isMove)
        {
            if (Add(CardNum))
            {
                AddProgram(CardNum);

                User_Text Text = new User_Text();

                Text.BkColor   = 0;
                Text.chContent = strContent;

                Text.PartInfo.FrameColor = 0;
                Text.PartInfo.iFrameMode = 0;
                Text.PartInfo.iHeight    = iHeight;
                Text.PartInfo.iWidth     = iWidth;
                Text.PartInfo.iX         = iX;
                Text.PartInfo.iY         = iY;

                Text.FontInfo.bFontBold      = false;
                Text.FontInfo.bFontItaic     = false;
                Text.FontInfo.bFontUnderline = false;
                Text.FontInfo.colorFont      = colorFont;
                Text.FontInfo.iFontSize      = 9;
                Text.FontInfo.strFontName    = "宋体";
                Text.FontInfo.iAlignStyle    = 0;
                Text.FontInfo.iVAlignerStyle = 0;
                Text.FontInfo.iRowSpace      = 0;

                Text.MoveSet.bClear       = false;
                Text.MoveSet.iActionSpeed = 0;
                Text.MoveSet.iActionType  = 20;
                Text.MoveSet.iHoldTime    = 50;

                if (!isMove)
                {
                    Text.MoveSet.iHoldTime = -1;
                }

                if (Programs.ContainsKey(CardNum))
                {
                    int m_iProgramIndex = (int)Programs[CardNum];
                    LED2008.User_AddText(CardNum, ref Text, m_iProgramIndex);
                }
            }
        }
Esempio n. 2
0
 public static extern int User_AddText(int CardNum, ref User_Text pText, int iProgramIndex);