以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- [转帖]Using the SVG Viewer in C++, VB, or VC application is not supported (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=14890) |
-- 作者:SCYANGYU -- 发布时间:2/28/2005 3:10:00 PM -- [转帖]Using the SVG Viewer in C++, VB, or VC application is not supported Using the SVG Viewer in C++, VB, or VC application is not supported Disclaimer: Adobe does not support programming the SVG Viewer Active X Control in a Visual Basic, or C++ application because this is not a supported use of the SVG Viewer. There is no SDK (Software Development Kit) for the Viewer. The following information is provided as a courtesy only. You can embed the SVG Viewer ActiveX control just like you would any other ActiveX control. Then you can do the same things as JavaScript writes would normally do (call getSVGDocument(), etc.). Note that all of these calls should go strictly through IDispatch interface. To register event handler, you can use addEventListener method, for instance foo.addEventListener( "click", callback, false ). Callback should be an instance of IDispatch interface that will receive call when event happens. The IDL's (Interface Definition) for the COM (Component Object Model) are available in the SVG spec for the SVG DOM (Document Object Model), and in the DOM spec for DOM Level 1 & 2. All of these methods and properties are available through the object browser in both Visual Basic and VisualC++ and their use is very similar to the examples given in the JavaScript examples at http//www.adobe.com/svg. Explore this site as well as others that deal with the use of the DOM from within Visual Basic. Refer to online resources or other XML books to gain information on using XML and the DOM with Visual Basic. |
-- 作者:SCYANGYU -- 发布时间:2/28/2005 4:12:00 PM -- Adobe does not support or document its COM interface when accessed directly, but it is not too difficult to access it since all of the methods match the SVG DOM, and IDispatch is used for all classes.
|
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
31.250ms |