Delphi component spTbxToolbar skin change

江枫思渺然 提交于 2019-12-12 20:02:43

问题


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


回答1:


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

Use this code

SkinManager.SetSkin('Office 2007 Blue');

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;

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




回答2:


I don't know that component, but found this with Google. Hope it helps.



来源:https://stackoverflow.com/questions/815371/delphi-component-sptbxtoolbar-skin-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!