From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
没有直接的办法来做这件事情,不过你可以用能无缝控制隐藏的文本路径控件的“基于事件”的解决办法。
附件中的范例程序展示了这个用法。
在VI的前面板上有一个file path控件隐藏在picture ring控件中,该控件被完全隐藏但同时一直是"active"的状态,如果该ring控件的区域里面收到了一个拖拽,那么该path 控件将会被更新,但同时ring控件区域却保持不变。如果鼠标进入了ring控件区域(并不拖拽),那么path控件将会被移至后面,因此picture ring控件可以像平常一样使用,最终如果鼠标离开了ring控件区域,该path控件将会重新被移至前面,这样它就又可以接受拖拽数据。该方法适用于任何控件,不只适用于picture ring控件。
|