Ejemplo 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);
        }