是德科技
直播中

张鑫

7年用户 173经验值
私信 关注
[问答]

怎么创建一个用户界面来获取一些测量值

大家好,我正在创建一个用户界面来获取一些测量值。
我的问题是我弹出第一个面板,用户可以在其中选择要采取的测量,以及第二个面板,用于引入测量参数,必须仅包含与所需测量相关的文件。
问题是:有一种方法可以根据所选择的测量值在面板中显示输入框,或者面板是“按原样”,所以我还要保持我不需要的字段?
感谢所有提前EssinaEdited:Essina于2013年6月26日上午6:38

以上来自于谷歌翻译


     以下为原文

  Hello Everybody,
I'm creating an user interface for acquiring some measurement.
My problem is that I pop up a first panel where the user can choose which measurement want to take, and them a second panel for the introduction of the measurement parameters, that have to contain only the fileds related to the wished measurements.
The question is: there is a way to make appear the input box in the panel depending on the measurement choosed, or the panel is "as is", so I have to maintain also the fields that I don't need?

Thanks to all in advance
Essina

Edited by: Essina on Jun 26, 2013 6:38 AM  

回帖(3)

顾天天

2019-5-22 14:33:15
您可以在显示面板后对其进行更新。
如果使用“执行时显示”将其作为用户对象或用户函数(UO / UF)调用,则可以直接将功能放入UO / UF。
如果您使用的是“show panel”,那么您需要一个输入引脚,您可以发送数据并由用户UO / UF处理。
为了说明'伪代码':方法1 - 'show on execute':调用UO / UF UO / UF更改其面板上的项目,弹出对话框等UO / UF完成,面板关闭方法2 - 'show panel'
:call showPanel(“

以上来自于谷歌翻译


     以下为原文

  You can update a panel after it has been shown.  If you are calling it as a user object or user function ( UO/UF ) using the 'show on execute' then you can put the functionality into the UO/UF directly.  If you are using 'show panel' then you need to have an input pin which you send data and is processed by the user UO/UF.

To illustrate in 'pseudo code':

method 1 - 'show on execute':
call UO/UF
UO/UF changes items on its panel, pops up dialog boxes etc
UO/UF completes and the panel closes

method 2 - 'show panel':
call showPanel(" send data to UO/UF to alter its panel contents
call hidePanel("
If you have a specific problem, then why post post some code here illustrating your problem and we'll try to help.

Mike Watts
举报

顾天天

2019-5-22 14:42:54
您可以使用控件的Visible属性 - 请参阅附带的示例。
注意:这适用于具有面板的用户对象或用户功能在“控制面板”上,两个输入项已分配了“声明名称”,在这种情况下,Data1和Data2都具有本地上下文可见性 - 允许您引用它们
在ControlPanel中的一个Formula对象中在这种情况下,我将复选框值捆绑到一个数组中 - (可能显然)不需要HTH,Mike Watts

以上来自于谷歌翻译


     以下为原文

  You can use the Visible property of a control for that - see attached example.

Notes: this works for both user objects or user functions with panels

On the 'Control Panel' the two input items have been assigned a 'declared name' in this case Data1 and Data2 both with local context visibility - that allows you to refer to them in a Formula object within ControlPanel

In this case I bundled the check box values into an array - ( probably obviously ) that is not required

HTH,

Mike Watts

附件

举报

张鑫

2019-5-22 14:58:55
迈克,这简直就是......太棒了!
这正是我想要做的!
非常感谢您的帮助!
最好的问候,Essina

以上来自于谷歌翻译


     以下为原文

  Mike,
this is simply... GREAT!!!
It's exactly what I was trying to do!

Many thanks for the help!

Best regards,
Essina
举报

更多回帖

发帖
×
20
完善资料,
赚取积分