www.mxdraw.com
|
设置进度条显示,会调用该事件
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; } }