How do I make my application use the Windows theme?

后端 未结 5 1588
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 15:56

I\'m working with some windows API to create a little application. I already created the buttons, windows, alright.

But the problem is the components I created don\'t lo

5条回答
  •  轮回少年
    2021-02-06 16:50

    1. It depends on what version of Delphi you're using. IIRC pre-Delphi 6 you need to add the needed manifest by hand. D7 and later has a component that need to be dropped on a form to add theme support (it simply adds the manifest), until D2007 IIRC added a simple check in the project options.
    2. Earlier version of Delphi won't show themed design form. You will see themes only at run time.
    3. Not all controls may support themes. Themes require the proper draw API to be called, if a control doesn't comply it won't be themed. The standard grid is a good example, it isn't draw themed until a late version.

提交回复
热议问题