Exemplo n.º 1
0
        private void frm_Main_Load(object sender, EventArgs e)
        {
            chkEnableSound.Checked = true;//Judge whether it is the allowed sound
            //The initial value of the character superposition
            pShowTime     = true;
            pTextPointSet = new PointF(100, 10);
            pTimePointSet = new PointF(200, 30);
            pFontSet      = this.Font;
            pBrushSet     = new SolidBrush(Color.Red);
            pDisplayText  = "";
            //Setting screen controls available properties
            SetOpenCloseFileControl(0);
            //Play data callback settings
            playCBFun = new DecCBFun(pDecCBFun);
            SetCallBackTypeCheck(stmType);
            mnuSizeTrue_Click(null, null);
            //Character superposition settings
            dFun = new DrawFun(DrawFun);
            NETPlay.NETRigisterDrawFun(0, dFun, 0);//Character overlay function demonstration

            StringUtil.InitControlText(this);
        }
Exemplo n.º 2
0
        private void frm_Main_Load(object sender, EventArgs e)
        {
            chkEnableSound.Checked = true;//判断是不是允许声音
            //字符叠加设置初始值
            pShowTime     = true;
            pTextPointSet = new PointF(100, 10);
            pTimePointSet = new PointF(200, 30);
            pFontSet      = this.Font;
            pBrushSet     = new SolidBrush(Color.Red);
            pDisplayText  = "";
            //设置画面控件可用属性
            SetOpenCloseFileControl(0);
            //播放数据回调设置
            playCBFun = new DecCBFun(pDecCBFun);
            SetCallBackTypeCheck(stmType);
            mnuSizeTrue_Click(null, null);
            //字符叠加设置
            dFun = new DrawFun(DrawFun);
            DHPlay.DHRigisterDrawFun(0, dFun, 0);//字符叠加功能演示

            StringUtil.InitControlText(this);
        }
Exemplo n.º 3
0
 public static extern bool PlayM4_SetDecCallBackMend(int nPort, DecCBFun dcbf, int nUser);
Exemplo n.º 4
0
 public static extern bool PlayM4_SetDecCallBack(int nPort, DecCBFun dcbf);
Exemplo n.º 5
0
 public static extern bool PlayM4_SetDecCallBackExMend(int nPort, DecCBFun DecCBFun, IntPtr pDest, int nDestSize, int nUser);
Exemplo n.º 6
0
 public static extern bool PlayM4_SetDecCallBack(int nPort, DecCBFun DataCallback);
Exemplo n.º 7
0
 private static extern bool PLAY_SetDecCallBack(int nPort,ref DecCBFun cbFun);
Exemplo n.º 8
0
 /// <summary>
 /// 设置回调函数
 /// </summary>
 /// <param name="nPort">端口</param>
 /// <param name="cbFun">回调函数</param>
 /// <returns>true:成功;false:失败</returns>
 public static bool DHSetDecCallBack(int nPort, DecCBFun cbFun)
 {
     bool returnValue=false;
     returnValue = PLAY_SetDecCallBack(nPort,ref cbFun);
     DHThrowLastError(nPort);
     return returnValue;
 }
Exemplo n.º 9
0
 private void frm_Main_Load(object sender, EventArgs e)
 {
     chkEnableSound.Checked = true;//判断是不是允许声音
     //字符叠加设置初始值
     pShowTime =true;
     pTextPointSet = new PointF(100,10);
     pTimePointSet = new PointF(200,30);
     pFontSet = this.Font;
     pBrushSet = new SolidBrush(Color.Red);
     pDisplayText = "";
     //设置画面控件可用属性
     SetOpenCloseFileControl(0);
     //播放数据回调设置
     playCBFun = new DecCBFun(pDecCBFun);
     SetCallBackTypeCheck(stmType);
     mnuSizeTrue_Click(null, null);
     //字符叠加设置
     dFun = new DrawFun(DrawFun);
     DHPlay.DHRigisterDrawFun(0, dFun, 0);//字符叠加功能演示
 }