DXScene4.42在XE2 Update3中的Bug修复

Lewolf 2012-07-27 09:06:38
DXScene4.42控件在XE2 Update3中CheckBox和RedioButton都出现不能显示IsChecked的情况,经过分析其代码,原因出在XE2的RTTI和之前版本有所不同,GetPropInfo方法获取属性信息的时候,不兼容以前的所有情况。需要修改一下,童鞋们可以打开“dx_vgcore.pas”找到 procedure TvxColorAnimation.ProcessAnimation;方法,将下面代码:

{ is string prop }

if GetPropInfo(FInstance.ClassInfo, FPath, [tkString, tkLString, tkWString{$IFDEF FPC},tkAString{$ENDIF}{$IFDEF KS_COMPILER11_UP}, tkUString{$ENDIF}]) <> nil then
SetStrProp(FInstance, FPath, vgColorToStr(vgInterpolateColor(FStartColor, FStopColor, NormalizedTime)));
{ is int prop }
if GetPropInfo(FInstance.ClassInfo, FPath, [tkInteger]) <> nil then
SetOrdProp(FInstance, FPath, vgInterpolateColor(FStartColor, FStopColor, NormalizedTime));


修改成:

SetStrProp(FInstance, FPath, vgColorToStr(vgInterpolateColor(FStartColor, FStopColor, NormalizedTime)));

即可。
...全文
172 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ccrun.com 2012-07-27
  • 打赏
  • 举报
回复
Lewolf大牛来了。我现在很少用三方控件了。
dataxdata 2012-07-27
  • 打赏
  • 举报
回复
谢谢分享,虽然没用到这个控件,不过以后也可能遇到类似情况
bcbsoft 2012-07-27
  • 打赏
  • 举报
回复
谢谢分享!
Hardware accelerated graphics on Windows, Mac OS X and Linux 3D and 2D graphical editor integrated in IDE Powerful 3D layer containing items such as Cube, Sphere, Cone, Plane, Mesh, free Camera and Lights Mesh object have WPF mesh data format, DXScene have advanced import tool which support - GLSM,WRL,TIN,STL,SMD,Q3BSP,BSP,PLY,OCT,OBJ,OBJF,NURBS,NMF,MS3D,MDC,MD2,LWO,GTS, GLM,GLX,GLA,B3D,MD5MESH,MD5ANIM,MD3,3DS,PRJ file formats Powerful 2D vector engine like Adobe Flash or Microsoft WPF includes high quality shapes and controls like window, label, button, checkbox, textbox and more 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. DXScene can be used to create hardware accelerated 2D applications with cool animation like CoverFlow, layer and more Easy to use time-based animation and transition effects Layered windows, Jpeg, Png, Tiff and Gif format read/write support, fast thumbnail creation Realtime mode for games and realtime simulations DXScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications DB-Aware controls - TvxDBNavigator, TvxDBLabel, TvxDBTextBox and more Multilanguage engine, editor and examples Physics simulation using Newton Game Dynamics Cross-platform solution available on Microsoft Windows, Apple Mac OS X and Linux DXScene Features: Skinning Engine DXScene have full skinning engine. Now you can apply styles to all controls very easy. DXScene have cool exists styles - Dark, Modern, Vista, AIR. Design-time inplace Editor WYSIWYG design-time 3D and 2D designer and property editors Power of 3D Powerful 3D layer containing items such as Cube, Sphere, Cone, Plane, Mesh, free Camera and Lights. Mesh object have WPF mesh data format and 3DS, MD3 file export tool. 2D in 3D Powerful 2D vector engine like Adobe Flash or Microsoft WPF includes high quality shapes and controls like window, label, button, checkbox, textbox and more. Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more. DXScene can be used to create hardware accelerated 2D applications with cool animation like CoverFlow, layer and more. Cool Particle Engine DXScene 3 have new cool particle engine with editor. Now you can add cool effects to your DXScene's applications. Cross-Platform Solution DXScene is a native object pascal components for Delphi/C++Builder and Lazarus. Available for Microsoft Windows, Apple Mac OS X and Linux. Applications: 3D Text A compact, flexible and affordable tool that will help you create custom 3D logos and headers in minutes. Fully configurable text parameters, any output resolution, lightning-fast rendering and instant preview of the changes made to the text model. 3D Image Commander 3D Image Commander a full-featured software that allows you to create advanced thumbnails with cool 3D styles and effects. Protect your copyrights with a copyright notice. Add text comments to any image. Create images with effects like 3D perspective, 3D curving, reflection, glow, shadow, corners and stroke. model2icon model2icon converts 3D models into Windows and Mac OS X icons. You can find many models on the Internet and convert them to icons for use on your desktop, in applications and much more. With model2icon you can convert 3D model to Windows and Mac OS X Icon with a single action. It supports Windows Vista 256x256 icons with alpha channel and new Leopard 256x256 Mac OS X icons. model2icon allow to customize 3D model before converting. Support 3DS, MD3 file format.
此控件是做3D界面软件的最好选择。。。 DXScene is 3D hardware accelerated graphics library Delphi/C++ Builder/Lazarus. Hardware accelerated graphics on Windows, Mac OS X and Linux 3D and 2D graphical editor integrated in IDE Powerful 3D layer containing items such as Cube, Sphere, Cone, Plane, Mesh, free Camera and Lights Mesh object have WPF mesh data format, DXScene have advanced import tool which support - GLSM,WRL,TIN,STL,SMD,Q3BSP,BSP,PLY,OCT,OBJ,OBJF,NURBS,NMF,MS3D,MDC,MD2,LWO,GTS,GLM,GLX,GLA,B3D,MD5MESH,MD5ANIM,MD3,3DS,PRJ file formats Powerful 2D vector engine like Adobe Flash or Microsoft WPF includes high quality shapes and controls like window, label, button, checkbox, textbox and more 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. DXScene can be used to create hardware accelerated 2D applications with cool animation like CoverFlow, layer and more Easy to use time-based animation and transition effects Layered windows, Jpeg, Png, Tiff and Gif format read/write support, fast thumbnail creation Realtime mode for games and realtime simulations DXScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications DB-Aware controls - TvxDBNavigator, TvxDBLabel, TvxDBTextBox and more Multilanguage engine, editor and examples Physics simulation using Newton Game Dynamics Cross-platform solution available on Microsoft Windows, Apple Mac OS X and Linux

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧