完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,我没有找到一种方法来附加一个vee文件,所以我上传到文件主机:http://www.file-upload.net/download-217 ... s.vee.html在我有的程序
一个下拉框,两个按钮,一个数字控件和一个指示器。现在我尝试禁用并启用不同状态下的框和按钮。我在面板中有更多描述。听起来很有意思但是几小时后我尝试了1000件但是 现在我不再有任何想法也许有人可以帮助我。 非常感谢你 以上来自于谷歌翻译 以下为原文 Hello, i didnt find a way to attach a vee-file here so i uploaded it to a file hoster: http://www.file-upload.net/download-217 ... s.vee.html In the programm i have a dropdown-box, two buttons, a numeric control and an indicator. Now i try to disable and enable the box and buttons at different states. I have more description inside in the panel. It sounds eays but after hours i tried 1000 things but now i have no ideas anymore Perhaps someone can help me. Thank you very much |
|
相关推荐
5个回答
|
|
|
使用可编程属性功能(在VEE 8.0中引入)很容易解决。给两个Toggle控件一个名称(声明的名称属性),如Toggle1和Toggle2(它们将在程序浏览器中显示为变量)。
然后使用Formula对象根据需要启用/禁用它们:Toggle1.EnableEditing = TRUE(或FALSE)您的代码将更清晰,更容易跟踪/调试。 并且您不需要使用可怕的Contol输入引脚!用户界面逻辑是一种情况,其中“正常”的数据流编程不是完美的选择。不知道为什么它不可能附加文件,它曾经是可能的 以上来自于谷歌翻译 以下为原文 This is very easy to solve using the programmable properties feature (introduced in VEE 8.0). Give the two Toggle controls a name (Declared name property) like Toggle1 and Toggle2 (they will then show up as varaibles in Program Explorer). Then you use Formula objects to enable/disable them as needed: Toggle1.EnableEditing=TRUE (or FALSE) Your code will be much cleaner and easier to follow/debug. And you dont need to use the awful Contol-input pins! User interface logic is one scenario where 'normal' data-flow programming is not a perfect fit. Dont know why it isnt possible to attach files, it used to be possible |
|
|
|
|
|
您可以使用Gojoh推荐的可编程属性功能来解决上述问题。
以上来自于谷歌翻译 以下为原文 You are able to solve the problem mentioned above by using programmable properties feature as recommended by Gojoh. |
|
|
|
|
|
哇,谢谢你这个例子!
我是这个VEE Pro的新手。 谢谢你的想法!其实我想知道我是否可以使用“下一步”来定义哪个“直到休息”才能循环....我想现在我可以使用这个“ping”命令来控制它! 谢谢!一个问题:我怎么知道哪个是“ok 1”和“ok 2”? 以上来自于谷歌翻译 以下为原文 wow, thanks for this example! I am a newbie in this VEE Pro. Thanks for the idea ! Actually i was wondering whether i can use " next " to define which " until break " to be looped.... i think now i can use this "ping " command to control it! Thanks! one question: How do i know which is the " ok 1 " and " ok 2 "? |
|
|
|
|
|
在不运行程序的情况下,选择按钮,然后在Properties Window中查看Declared Name值。
以上来自于谷歌翻译 以下为原文 Without running the program, select the button, then look at Declared Name value at Properties Window. |
|
|
|
|
|
这是真的!
我明白了! 谢谢!! 现在我可以改进我的程序!! 真的从你们那里学到很多东西〜 以上来自于谷歌翻译 以下为原文 It is true! I got the idea ! Thanks!! Now I can improve my program!! Really learn a lots of things from you guys~ |
|
|
|
|
只有小组成员才能发言,加入小组>>
250 浏览 0 评论
1863 浏览 0 评论
2753 浏览 1 评论
2656 浏览 1 评论
2477 浏览 5 评论
1863浏览 0评论
431浏览 0评论
257浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 04:33 , Processed in 0.824714 second(s), Total 81, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4574