在flexible中附带的说明文档中介绍了VB s cript for WinCE,可以使用CreatObject函数,而在WinCE中可以用于这个函数以动态创建的控件为:
Control ProgID
Microsoft CE File control 6.0 .file
Microsoft CE FileSystem control 6.0 .filesystem
Microsoft CE ImageList control 6.0 CEimageList.imagelistctrl
相关说明如下:
Use CreateObject to create non-visible ActiveX controls at runtime. You cannot use CreateObject to create graphical objects such as a TreeView control or a ListView control. CreateObject produces objects that cannot respond to events. To produce objects that can respond to events, use the CreateObjectWithEvents function. The following table lists the ProgIDs for the ActiveX controls without events.
非常奇怪的是:
1、CreatObject不能建立可见的画面元素
2、不能建立图形类对象
3、创立的对象对event(事件)无反应,要想能有反应,需要用CreatObjectWithEvents函数
很迷惑啊。。那要这个控件做什么?在MSDN中关于VB调用ImageList控件的说明中还专门提到了这个控件为了Win CE作了优化,提高了图形的显示速度
有对这方面有研究的朋友么?到底能不能在WinCC Flexible中利用脚本动态建立控件来调用ImageList或者直接显示flash(通过SWFlash.ocx控件)?
我对计算机应用编程还算有点基础,搞工控则毫无经验,刚刚开始,还望各位高手和斑竹不吝赐教