Example #1
0
        public void AddSingleTextToProgram(int CardNum, int iX, int iY, int iHeight, int iWidth, string strContent, int colorFont, bool isMove)
        {
            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       = 12;
            SingleText.PartInfo.FrameColor      = colorFont;
            SingleText.FontInfo.strFontName     = "宋体";
            SingleText.MoveSet.bClear           = false;
            SingleText.MoveSet.iActionSpeed     = 0;
            SingleText.MoveSet.iActionType      = 1;
            SingleText.MoveSet.iHoldTime        = 50;
            SingleText.MoveSet.iClearActionType = 1;
            SingleText.MoveSet.iClearSpeed      = 0;
            SingleText.MoveSet.iFrameTime       = 30;

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