www.mxdraw.com
内容索引主面
前一个向上下一个
MxDrawXCustomEvent::SetProgressBar 方法

设置进度条显示,会调用该事件

IDL
static void SetProgressBar(LONG lRange, LONG lPos);
参数 
说明 
LONG lRange 
进度条显示范围 
LONG lPos 
进度条显示位置 

例如: C#例子.

        private void axMxDrawX1_CustomEvent(object sender, AxMxDrawXLib._DMxDrawXEvents_CustomEventEvent e)
        {
            if (e.sEventName == "SetProgressBar")
            {
                MxDrawResbuf param = (MxDrawResbuf)axMxDrawX1.CustomEventParam();
                int lRange = param.AtLong(0);
                int lPos = param.AtLong(1);
                progressBar1.Visible = true;
                progressBar1.Maximum = lRange;
                progressBar1.Value = lPos;

            }
            else if (e.sEventName == "SetTipCoord")
            {
                progressBar1.Visible = false;
            }
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!