Delphi组件spTbxToolbar皮肤更改 [英] Delphi component spTbxToolbar skin change

查看:104
本文介绍了Delphi组件spTbxToolbar皮肤更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在运行时通过代码(而不是groupskintype)(sptbxtoolbar组件的外观类型)进行更改?

How to change at runtime by code (not for groupskintype), the skin type for a sptbxtoolbar component?

推荐答案

您只能一次更改所有SpTBXLib组件的外观。

You can only change the skin of all SpTBXLib components at once.

使用此代码

SkinManager.SetSkin('Office 2007 Blue');

但是,如果使用皮肤,Windows外观或默认值绘制,则可以为每个SpTBXLib组件进行设置通过设置分配 SkinType 属性的外观。

You can however set for each SpTBXLib component if it is drawed using the skin, Windows look or the default look, by setting assigning the SkinType property.

MyComponent.SkinType := sknWindows;

提示:工具栏本身没有SkinType属性。它们总是使用皮肤绘制。

Hint: Toolbars itself do not have the SkinType property. They are always drawn using the skin.

这篇关于Delphi组件spTbxToolbar皮肤更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆