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

                User_SingleText SingleText = new User_SingleText();

                SingleText.BkColor                  = 0;
                SingleText.chContent                = strContent;
                SingleText.PartInfo.iFrameMode      = 0;
                SingleText.PartInfo.iHeight         = iHeight;
                SingleText.PartInfo.iWidth          = iWidth;
                SingleText.PartInfo.iX              = iX;
                SingleText.PartInfo.iY              = iY;
                SingleText.FontInfo.bFontBold       = false;
                SingleText.FontInfo.bFontItaic      = false;
                SingleText.FontInfo.bFontUnderline  = false;
                SingleText.FontInfo.colorFont       = colorFont;
                SingleText.FontInfo.iFontSize       = 9;
                SingleText.PartInfo.FrameColor      = colorFont;
                SingleText.FontInfo.strFontName     = "宋体";
                SingleText.MoveSet.bClear           = false;
                SingleText.MoveSet.iActionSpeed     = 0;
                SingleText.MoveSet.iActionType      = 20;
                SingleText.MoveSet.iHoldTime        = 50;
                SingleText.MoveSet.iClearActionType = 0;
                SingleText.MoveSet.iClearSpeed      = 0;
                SingleText.MoveSet.iFrameTime       = 30;

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

                if (Programs.ContainsKey(CardNum))
                {
                    int m_iProgramIndex = (int)Programs[CardNum];
                    LED2008.User_AddSingleText(CardNum, ref SingleText, m_iProgramIndex);
                }
            }
        }
예제 #2
0
 public static extern int User_AddSingleText(int CardNum, ref User_SingleText pSingleText, int iProgramIndex);