Groups
Groups
Sign in
Groups
Groups
Visual Graph技术论坛
Conversations
About
Send feedback
Help
请教版主一个技术问题
0 views
Skip to first unread message
357...@163.com
unread,
Jan 13, 2009, 8:25:08 AM
1/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Visual Graph技术论坛
我最近刚了解了一下VG,想搞二次开发,在工控监测系统上使用VG,我有一个疑问:
我做好程序交付给用户,这时的画面上有两个开关,由我的程序中的两个变量来控制这两个开关的通断显示。如果用户需要增加一个开关,用
VG.EXE来修改画面,这第三个开关如何与我的程序中的变量来建立关系?是否需要修改我的源程序代码?
我在网站上的帮助系统上看到,实现变量与图形的关联,需要在程序中使用类似KaiGuan1.SetValue()之类的函数来控制开关的通
断。可是如果增加了开关或变更了开关,就需要修改源程序。
能否这样:用户在编辑图形时,对开关等元件指定由某变量来控制,这样就不需要修改源程序了。是否我另做一套图形编辑软件就能实现了,在此软件上
能够能图形元件的控制变量进行指定。这个编辑软件做起来复杂吗?
谢谢!
鸡蛋白
unread,
Jan 13, 2009, 9:30:15 PM
1/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Visual Graph技术论坛
我不是版主,只是一个访客。
其实你的问题可以归纳为如何进行"面向图形对象的程序设计"问题。
VG只是提供给你了一个图形对象的机构,当然包括相应的属性和函数;而你所开发的应用是否能够在不修改源代码的基础上适应不同变化的图形,其关键在于你
程序的写法。如果在相应的图形对象(例如:你的开关)上表明相关的属性,而在程序中又能对图中的各种图形对象进行遍历,那么,实现一个适应性较强的程序
应该是没有问题的。不知我的解释是否足够?
357...@163.com
unread,
Jan 18, 2009, 12:57:47 AM
1/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Visual Graph技术论坛
非常感谢,我明白了。只是不知道做这样一个图形编辑程序是不是很复杂。
Reply all
Reply to author
Forward
0 new messages