예제 #1
0
        public void AddTextToProgram(int CardNum, int iX, int iY, int iHeight, int iWidth, string strContent, int colorFont, bool isMove)
        {
            AddProgram(CardNum);

            User_Text Text = new User_Text();

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

            Text.PartInfo.FrameColor = 0xFF00; // 0;
            Text.PartInfo.iFrameMode = 1;      // 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      = 12;
            Text.FontInfo.strFontName    = "宋体";
            Text.FontInfo.iAlignStyle    = 0;
            Text.FontInfo.iVAlignerStyle = 0;
            Text.FontInfo.iRowSpace      = 0;

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

            Text.MoveSet.iClearActionType = 0;
            Text.MoveSet.iClearSpeed      = 4;
            Text.MoveSet.iFrameTime       = 20;

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

            if (Programs.ContainsKey(CardNum))
            {
                int m_iProgramIndex = (int)Programs[CardNum];
                LED2008.User_AddText(CardNum, ref Text, m_iProgramIndex);
            }
        }
예제 #2
0
파일: LED2008.cs 프로젝트: qq5013/ChangSu
 public static extern int User_AddText(int CardNum, ref User_Text pText, int iProgramIndex);