Recent

Author Topic: How to enable themes in Lazarus?  (Read 6972 times)

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
How to enable themes in Lazarus?
« on: December 25, 2014, 11:20:19 pm »
Hi, I am not sure my question will be clear.

Question 1
In the past Lazarus was only able to produce programs with the redmond theme (=like Win95, Win98, Win2000). Now it also supports "themes", this means the components have the style that is set on the system.
Is there a way to manually force one or the other?

Question 2
I am trying to use a TPageControl and a TButton on my form and I notice that the TPageControl has the Redmond theme (=like windows 9x) and the button the system theme, why?


Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: How to enable themes in Lazarus?
« Reply #1 on: December 25, 2014, 11:29:48 pm »
Questions 1 + 2  => In project Options => enable manifest themes

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: How to enable themes in Lazarus?
« Reply #2 on: December 25, 2014, 11:46:37 pm »
When I do that I get a "Debugger Error" window

Code: [Select]
The GDB command:
"-exec-run"
returned the error:
",msg="Error creating process D:/Develop/Lazarus/Project/Test.exe, (error 740).""

« Last Edit: December 25, 2014, 11:49:57 pm by LazaruX »

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: How to enable themes in Lazarus?
« Reply #3 on: December 26, 2014, 01:46:42 pm »
Quote
When I do that I get a "Debugger Error" window

I think that... you have to show us your code...  :-X

Fre;D
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: How to enable themes in Lazarus?
« Reply #4 on: December 27, 2014, 08:59:20 pm »
Hi Fred,
thanks for your replies. Well my code is just a simple form with some Components on it. No coding part yet.
I read that GDB32bit on Windows 64 bit gives some problems Is this related?
I am developing on Windows 8.1 Update 1 64 bit.

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: How to enable themes in Lazarus?
« Reply #5 on: December 30, 2014, 12:09:59 am »
No idea why, but I reinstalled Lazarus and now it seems to be working. My question still remains: how can I manually force the change of themes during execution?
At the moment I just see that if the manifest file is there it uses the system theme, if it's not there it uses the redmond theme. I see other applications (example: ActiveXperts Network Monitor) have an option to change across multiple themes. How can I do that in Lazarus?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: How to enable themes in Lazarus?
« Reply #6 on: January 07, 2015, 01:07:08 pm »
No idea why, but I reinstalled Lazarus and now it seems to be working. My question still remains: how can I manually force the change of themes during execution?

You can't lcl does not allow you to control the look and feel it forces the default theme the OS uses when you enable it from the option that fred mentioned you simple instruct the OS that you application can handle the new themes and allow you to shaw the new look and fill after that everything goes through the ThemeManager but it does not support custom theming at all.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018