因工作需要,今天开始研究Delphi开发工具下的VGScene控件,首选 介绍一下VGScene:
- Powerful vector engine like Adobe Flash or Microsoft WPF
- Fast realtime anti-aliased vector graphics, resolution independent, alpha blending, gradient and special visual filling
- WYSIWYG design-time and run-time designer and property editors
- Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more
- Advanced skinning engine based on vector graphics styles. Cool exists styles - Dark, Modern, Vista, Air.
- VGScene provides shape primitives for 2D graphics along with a built-in set of brushes, pens, geometries, and transforms
- Advanced animations techniques calculated in background thread. Easy to use, accuracy, minimal CPU usage and automatic FPS correction
- VGScene provides for bitmap effects, however, they are rendered in software. Special effects such as dropshadows and blurring are built in.
- VGScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications
- Path object have SVG, WPF path data format
- Very easy to use and powerful layouts. The child elements are recursively arranged by their parents.
- Layered forms, unicode enabled
- Jpeg, Png, Tiff and Gif format read/write support on Windows and Mac OS X
- Fast thumbnail creation and image processing
- Cross-platform solution available on Microsoft Windows and Apple Mac OS X
主要就是可媲美.net的WPF界面效果,跨平台,动画效果实现。目前不知道最新版本是多少了,我使用的是4.42.可以在csdn的下载里面找到我发布的安装包。
我的第一个例子其实很简单,就是在一个窗体上放置了一个TvgScene,里面创建了四个按钮对象(TvgBitmapButton),然后通过属性编辑器设置,第一就是设置TvgScene的Transparency为true,然后设置其下的Root1的HitTest为False.
第二就是设置四个按钮的Click事件,只是简单的弹出对话框,
当我运行里来后,窗体无边框的show了出来,但当我点击放到上面的按钮后,发现无反应,设置断点发现没有触发事件。经过和Demo仔细
对比,我才发现原来是Form窗体的BorderStyle没有设置为bsNone造成的。
希望对同样用VgScene的兄弟们有帮助。