完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗯。
如果有人感兴趣...安捷伦vee 8.5帮助文件中有一些关于使用.net控件的限制的说明如下:“只有当控件托管在Windows窗体中时,才调用ProcessDialogKey,ProcessDialogChar,ProcessCmdKey等一些控制方法 应用程序,但VEE应用程序不是Windows窗体应用程序。控件编写器很少需要实现这些方法,但如果他或她这样做,VEE程序可能无法提供该控件的所有功能,或者您可能会意外 “我将这个发布给我正在查看的控件的制造商,他回复如下:”VEE环境未调用的ProcessDialogKey / Char方法将解释您遇到的问题.Windows窗体应用程序调用ProcessDialogKey / 聚焦控件和聚焦控件的父控件上的Char方法,但只调用聚焦控件上的OnKeyDown / Press / Up方法.FpSpread控件使用子控件 用于细胞编辑。 无论FpSpread控件还是子控件具有焦点(例如箭头键和制表键),FpSpread控件处理的许多击键都需要处理相同。 因此,FpSpread控件在ProcessDialogKey / Char方法中处理这些击键。“所以,基本上,尽管安捷伦的所有市场营销模糊,但实际上不可能在V形面板上有效地使用.net控件。如果您使用单独的控件, 作为文本框,复选框等,它们可以工作,但是你无法在界面上选项卡,因为没有机制可以进入或退出控件。好的,你可以用鼠标使用它,但根据我的经验,大多数测试工程师都在运行 测试软件更喜欢键盘控制。如果你试图使用一个统一的控件,如Farpoint传播,vee不允许必要的按键通过控件允许任何导航。你可以编程一个容器有多个控件,但你做的 这个以编程方式,即不能以图形方式构建界面。接受我在这一点上非常沮丧,是不是只有我发现令人难以置信的“图形化编程语言”不允许你实现有效的“ 图形用户界面“。我猜是时候去视觉工作室.RegardsNick -----原始消息-----来自:Shawn Fessenden [mailto:shawn@vrfarchive.com]发送时间:2008年5月19日15:19 :VRFSubject:RE:[vrf]确实捕获了所有的按键等?>如果.NET控件有焦点,>分配的键不起作用。这似乎表明完全相反:> vee正在捕获 这里以前的工作方式是:应用程序(VEE)首先按键击,除非窗口已经被子类化或键盘过滤器生效(可能是 情况也不是这样。。热键(如Ctrl + O等)通常由应用程序立即处理,除非焦点控件想要对它们做些什么。 例如,在数据库应用程序中,Ctrl + V可能会将当前记录复制到剪贴板,除非焦点位于编辑控件上,在这种情况下,控件将当前选择复制到剪贴板。通常,有焦点的控件有机会 首先处理任何其他密钥。 这就是Tab& 箭头将由控件处理。 通常,键(比如一个Tab键)从应用程序窗口传递到当前聚焦的MDI窗口,然后传递到碰巧打开的任何对话框,然后传递给对话框上当前聚焦的控件。这可能是事情的所在。 搞砸了。 在宏观方案中,VEE面板应该像非模态对话框一样,也许它们不应该。 类名是AgilentVEE_CHILD而不是#32770,所以在这个意义上它们肯定不是对话框。-SHAWN- 以上来自于谷歌翻译 以下为原文 Ummm. If anyone is interested... There are some notes within the Agilent vee 8.5 help file concerning limitations of using .net controls as follows: "Some control methods like ProcessDialogKey, ProcessDialogChar, ProcessCmdKey are only called when the control is hosted inside a Windows Form application, but a VEE application is not a Windows Form application. A control writer will seldom need to implement these methods, but if he or she does, the VEE program may not offer all of the functionality of that control, or you may get unexpected behaviour." I posted this to the manufacturer of the control I am looking at who responded as follows: "The ProcessDialogKey/Char methods not being called by the VEE environment would explain the problem you are encountering. A Windows Forms application calls the ProcessDialogKey/Char methods on both the focused control and the focused control's parent but only calls the OnKeyDown/Press/Up methods on the focused control. The FpSpread control uses child controls for cell editing. Many of the keystrokes handled by the FpSpread control need to be handled the same whether the FpSpread control or the child control has focus (e.g arrow keys and tab key). Thus, the FpSpread control handles these keystrokes in the ProcessDialogKey/Char methods." So, essentially, despite all the marketing blurb from Agilent, it Is not really possible to effectively use .net controls on a vee panel. If you use individual controls such as text box, check box, etc they work but you have no way to tab around the interface as there is no mechanism to tab into or out of the controls. OK you can use it with a mouse but in my experience most test engineers running test software prefer keyboard control. If you try to use a consolidated control such as the Farpoint spread, vee does not allow the necessary key presses through to the control to allow any navigation. You can program a container to have multiple controls but you have do this programmatically, ie cannot build the interface graphically. Accepting that I am pretty frustrated at this point, is it just me that finds it incredible that a "graphical programming language" does not allow you to implement effective "graphical user interfaces". I guess it is time to go to visual studio. Regards Nick -----Original Message----- From: Shawn Fessenden [mailto:shawn@vrfarchive.com] Sent: 19 May 2008 15:19 To: VRF Subject: RE: [vrf] does vee trap all key presses, etc? > If a .NET control has the focus, > assigned keys don't work. Which would seem to indicate exactly the opposite of: > vee is capturing the tab key and > arrow keys such that they never > get through to the component. The way this used to work was: the application (VEE) gets first shot at keystrokes unless the window has been subclassed or a keyboard filter is in effect (probably neither is the case). Hot keys (like Ctrl+O etc.) are normally handled by the application immediately unless the control with focus wants to do something with them. For instance, in a database app, Ctrl+V might copy the current record to the clipboard unless focus is on an edit control, in which case the control copies the current selection to the clipboard. Usually, the control with focus is given a chance to handle any other key first. This is the point were Tab & arrows would be handled by the control. Generally, the key (lets say a Tab key) is passed from the application window to the currently focused MDI window, then to any dialog that happens to be open, then to the currently focused control on the dialog. This might be where things are getting screwed up. In the grand scheme of things, VEE panels ought to behave like non-modal dialogs and maybe they don't. The class name is AgilentVEE_CHILD not #32770, so in that sense they certainly are not dialogs. -SHAWN- |
|
相关推荐
2个回答
|
|
|
大家好,我想知道是否有人可以帮助我?
我正在尝试使用名为Farpoint Spread 4的第三方GUI组件。这是一个.net组件,它本质上是一个具有excel导入/导出功能的网格控件。实际上,该组件很容易从vee编程,并且所有功能都出现 与vee合作。 但是,我有一个问题。 正如我所说,该组件是可编程网格。 我可以将网格放在一个vee用户功能面板上,当我运行代码时,我可以单击进入网格并编辑单个单元格的内容等。不起作用的是控件中的任何类型的导航。 默认情况下,组件应该识别制表符,箭头键等作为逐个单元格在网格中移动的机制。 我已与制造商核实过,无需配置或启用此功能。 它总是在那里。 在vee中它不起作用。来自制造商的反馈是问题必须是vee正在捕获Tab键和箭头键,使得它们永远不会通过组件。我想这是可行的但是有人知道这是否是 可能甚至更好我如何解决它?感谢提前尼克---您目前订阅vrf为:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com “在邮件正文中使用单词subscribe。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Hi All I wonder if anyone can help me? I am trying to use a 3rd party GUI component called Farpoint Spread 4. This is a .net component that is essentially a grid control with excel import/export capability. Essentially, the component is easy to program from vee and all of its functionality appears to work with vee. However, I have one issue. As I said, the component is a programmable grid. I can place the grid on a vee userfunction panel and when I run the code I can click into the grid and edit the contents of individual cells, etc. The thing that is not working is any kind of navigation within the control. By default, the component should be recognising tabs, arrow keys, etc as a mechanism to move around the grid, cell by cell. I have checked with the manufacturer and this functionality does not need to be configured or enabled. It is always there. Within vee it is not working. The feedback from the manufacturer is that the problem must be that vee is capturing the tab key and arrow keys such that they never get through to the component. I guess this is feasible but does anyone know if this is likely or even better how I can get around it? Thanks in advance Nick --- You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
|
|
嗨尼克。我们在Vee中发现了这个错误:如果.NET控件有焦点,分配的键不起作用./Søren_____来自:ext Nick Evans [mailto:nick@evanstest.co.uk]发送:2008-
05-19 14:35:VRFS主题:[vrf]确实能够捕获所有按键等等吗?你好,我想知道是否有人可以帮助我? 我正在尝试使用名为Farpoint Spread 4的第三方GUI组件。这是一个.net组件,它本质上是一个具有excel导入/导出功能的网格控件。实际上,该组件很容易从vee编程,并且所有功能都出现 与vee合作。 但是,我有一个问题。 正如我所说,该组件是可编程网格。 我可以将网格放在一个vee用户功能面板上,当我运行代码时,我可以单击进入网格并编辑单个单元格的内容等。不起作用的是控件中的任何类型的导航。 默认情况下,组件应该识别制表符,箭头键等作为逐个单元格在网格中移动的机制。 我已与制造商核实过,无需配置或启用此功能。 它总是在那里。 在vee中它不起作用。来自制造商的反馈是问题必须是vee正在捕获Tab键和箭头键,使得它们永远不会通过组件。我想这是可行的但是有人知道这是否是 可能甚至更好我如何解决它?感谢提前尼克---您目前订阅了vrf:Soeren.Hedemand@nokia.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent .com“在邮件正文中使用了subscribe这个词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 ---您目前订阅了vrf:ming_meng@agilent.com要订阅,请发送电子邮件至:“vrf-request@lists.it.agilent.com”,邮件正文中包含subscribe一词。 要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 要将邮件发送到此邮件列表,请发送电子邮件至“vrf@agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 在“http://www.vrfarchive.com/vrf_archive”上搜索“unofficial vrf archive”。 在“http://vee.engineering.agilent.com”上搜索Agilent vrf存档。 以上来自于谷歌翻译 以下为原文 Hi Nick. We have found this bug in Vee: If a .NET control has the focus, assigned keys don't work. /Søren _____ From: ext Nick Evans [mailto:nick@evanstest.co.uk] Sent: 2008-05-19 14:35 To: VRF Subject: [vrf] does vee trap all key presses, etc? Hi All I wonder if anyone can help me? I am trying to use a 3rd party GUI component called Farpoint Spread 4. This is a .net component that is essentially a grid control with excel import/export capability. Essentially, the component is easy to program from vee and all of its functionality appears to work with vee. However, I have one issue. As I said, the component is a programmable grid. I can place the grid on a vee userfunction panel and when I run the code I can click into the grid and edit the contents of individual cells, etc. The thing that is not working is any kind of navigation within the control. By default, the component should be recognising tabs, arrow keys, etc as a mechanism to move around the grid, cell by cell. I have checked with the manufacturer and this functionality does not need to be configured or enabled. It is always there. Within vee it is not working. The feedback from the manufacturer is that the problem must be that vee is capturing the tab key and arrow keys such that they never get through to the component. I guess this is feasible but does anyone know if this is likely or even better how I can get around it? Thanks in advance Nick --- You are currently subscribed to vrf as: Soeren.Hedemand@nokia.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". --- You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body. To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive". Search the Agilent vrf archive at "http://vee.engineering.agilent.com". |
|
|
|
|
只有小组成员才能发言,加入小组>>
250 浏览 0 评论
1863 浏览 0 评论
2753 浏览 1 评论
2656 浏览 1 评论
2477 浏览 5 评论
1863浏览 0评论
431浏览 0评论
253浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-11 23:45 , Processed in 0.995696 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4168