下载地址:
http://download.csdn.net/detail/wozengcong/6348761
1、在Tools----Options----Environment Options----Environment Variables----user override下新建环境变量
DEV1226Path 值为DevExpressVCL1226的路径,我的电脑的路径为:C:\Program Files\Embarcadero\RAD Studio\11.0\Components\DevExpressVCL12262、Tools----Options----Environment Options----Delphi Options----Library----Library path
已经存在的其他路径不用管直接追加后面的内容;$(DEV1226Path)\ExpressCore Library\Sources;$(DEV1226Path)\ExpressCommon Library\Sources;$(DEV1226Path)\XP Theme Manager\Sources;$(DEV1226Path)\ExpressGDI+ Library\Sources;$(DEV1226Path)\ExpressLibrary\Sources;$(DEV1226Path)\ExpressDataController\Sources;$(DEV1226Path)\ExpressEditors Library\Sources;$(DEV1226Path)\ExpressBars\Sources;$(DEV1226Path)\ExpressPageControl\Sources;$(DEV1226Path)\ExpressMemData\Sources;$(DEV1226Path)\ExpressDBTree Suite\Sources;$(DEV1226Path)\ExpressDocking Library\Sources;$(DEV1226Path)\ExpressExport Library\Sources;$(DEV1226Path)\ExpressFlowChart\Sources;$(DEV1226Path)\ExpressLayout Control\Sources;$(DEV1226Path)\ExpressNavBar\Sources;$(DEV1226Path)\ExpressOrgChart\Sources;$(DEV1226Path)\ExpressQuantumGrid\Sources;$(DEV1226Path)\ExpressPivotGrid\Sources;$(DEV1226Path)\ExpressVerticalGrid\Sources;$(DEV1226Path)\ExpressSpreadSheet\Sources;$(DEV1226Path)\ExpressQuantumTreeList\Sources;$(DEV1226Path)\ExpressScheduler\Sources;$(DEV1226Path)\ExpressPrinting System\Sources;$(DEV1226Path)\ExpressSkins Library\Sources;$(DEV1226Path)\ExpressSpellChecker\Sources;$(DEV1226Path)\ExpressTile Control\Sources;$(DEV1226Path)\ExpressWizard Control\Sources
3、启动DELPHI XE4,双击PGDevExpress18Package.groupproj,鼠标右键,选择“PGDevExpress18Package”,Complie All+一个一个地Install(灰色齿轮包),双击PPGDevExpress18Package_2.groupproj,〖这个是皮肤包,不适用换肤功能可以不安装〗,鼠标右键,选择“PGDevExpress18Package_2”,Complie All+一个一个地Install(灰色齿轮包)
技巧:可以按住CTRL+鼠标左键一个一个的选择(灰色齿轮包),鼠标右键,选择Install
也可以按住SHIFT+鼠标左键全部选择,在按住CTRL+鼠标左键剔除非(灰色齿轮包),鼠标右键,选择Install
附录:
DevExpress 中使用皮肤及保持EXE体积不巨增的办法(必须编译和安装PPGDevExpress18Package_2.groupproj,皮肤控件才有Modify Skin Options菜单)
一. DELPHI的主菜单: Project -> Modify Skin Options ,弹出Project Skin Options Editor 对话框, 从中选择Enable skin Support ,从下面的列表中,只选择: UserSkin这一项,其它的取消选择,点OK退出. (注意:此步骤需DEV40以上版本才有效)
二. 从Dev Express 项下选择dxSkinController控件,添加到工程,设置dxSkinController1的SkinName属性设为:UserSkin ;
三. 代码:
str:='Office2007Black.skinres'; //此处请各位自行修改,可以下载上面的皮肤资源后,
//遍历所有的皮肤资源文件.
dxSkinsUserSkinLoadFromFile(Trim(ExtractFilePath(Application.ExeName)) + '\skin\' + str);
dxSkinController1.NativeStyle:=False;
dxSkinController1.UseSkins:=True;