VCL从RES中读取皮肤

将皮肤文件添加到Resources中,resourcetype必须设置为VCLSTYLE,在工程文件中添加vcl.themes,vcl.styles两个单元就可以在程序启用时直接从资源文件中读取皮肤文件

var

lvstyle: TStyleManager.TStyleServicesHandle;

begin

try

// TStyleManager.SetStyle(TStyleManager.LoadFromFile('TabletLight.vsf'));

// DONE -c Task:正式发布时把皮肤编译进res文件当中 2017.12.07

lvstyle := TStyleManager.LoadFromResource(HInstance, 'skinTableLight');

if lvstyle <> nil then

TStyleManager.SetStyle(lvstyle);

except

 

end;

end;

VCL从RES中读取皮肤

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2021-11-28
  • 2021-12-28
  • 2021-07-27
  • 2021-10-07
  • 2021-10-16
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2021-08-27
  • 2021-10-28
  • 2021-10-22
相关资源
相似解决方案