Recent

Author Topic: (Solved) How to (un)set glossy theme of Lazarus under windows  (Read 5375 times)

Muso

  • Sr. Member
  • ****
  • Posts: 362
(Solved) How to (un)set glossy theme of Lazarus under windows
« on: November 04, 2014, 12:25:47 am »
I have installed Lazarus 1.2.6 under Win 7 professional.
When I start it as normal Windows user Lazarus looks like programs on a Mac with glossy buttons, see the attached screenshot.
When I start Lazarus with Windows admin privileges it looks like a normal Windows program.

The problem is that I cannot figure out how to set or unset the theme. One one hand I like the glossy style of the buttons but the compiled program has the standard buttons that therefore on a slightly different position than I designed. So I tried to unset the theme but cannot find out where and how.

Does anybody have an idea?
« Last Edit: July 28, 2020, 02:39:38 am by Muso »

wp

  • Hero Member
  • *****
  • Posts: 13361
Re: How to (un)set glossy theme of Lazarus under windows
« Reply #1 on: November 04, 2014, 12:29:06 am »
In the project options, category "Application", there is a checkbox "Use manifest file...". If this is checked you get a modern themed application like in your screenshot, if not you get the un-themed old Windows-95 style.

Muso

  • Sr. Member
  • ****
  • Posts: 362
Re: How to (un)set glossy theme of Lazarus under windows
« Reply #2 on: November 04, 2014, 12:57:45 am »
In the project options, category "Application", there is a checkbox "Use manifest file...". If this is checked you get a modern themed application like in your screenshot, if not you get the un-themed old Windows-95 style.

That doesn't change anything; my application appears always un-themed while the designer has a theme.

While fiddling around, I found the solution: The main form of the application has restrictions. There is a Font restriction for MacOS and there the Size was set to 8. I reset this to 0 and then my application always get a theme, no matter if I use manifest file in the project options or not.

Muso

  • Sr. Member
  • ****
  • Posts: 362
Re: How to (un)set glossy theme of Lazarus under windows
« Reply #3 on: November 04, 2014, 01:07:43 am »
That doesn't change anything; my application appears always un-themed while the designer has a theme.

Hmm, Now I understand. it is not enough just to change the project options and run the application, one must rebuild it before and then compile to see the effect.

Muso

  • Sr. Member
  • ****
  • Posts: 362
Re: How to (un)set glossy theme of Lazarus under windows
« Reply #4 on: November 04, 2014, 06:37:31 pm »
This can be marked SOLVED. I found the reason why Lazarus behaved different on different PCs: The Windows screen settings must be set to allow themes and use a modern theme.
Therefore the compiled applications look therefore different on different Win 7 PCs.  No big problem but good to know and
to understand.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: How to (un)set glossy theme of Lazarus under windows
« Reply #5 on: November 04, 2014, 07:06:57 pm »
@Muso - as initiator of this thread you are able to edit the thread title.

 

TinyPortal © 2005-2018