Recent

Author Topic: Bug in TPageControl dark mode ?  (Read 547 times)

chrv

  • Jr. Member
  • **
  • Posts: 68
Bug in TPageControl dark mode ?
« on: September 02, 2024, 09:07:10 pm »
Hello everyone,
I allow myself to send a second version of the same request given the lack of response (0 in 4 days) https://forum.lazarus.freepascal.org/index.php/topic,68356.0.html. I address it to another section probably better adapted.

Quote
When trying to convert an app to DarkMode on Windows, I encounter an anomaly with a TPageControl. It seems to be a bug:
1/ Create a TPageControl on a form.
2/ Create several TTabSheet
3/ Switch to Dark mode (uses uDarkStyleParams, uWin32WidgetSetDark, uDarkStyleSchemes, uMetaDarkStyle and create a procedure to activate Dark mode [here it is SetDarkStyle])
4/ By compiling at this time, everything is normal.
5/ At this stage, if you switch to vertical mode (TabPosition:=tpLeft), then the dark aspect disappears on the TabSheet rows.
(see attached démo and screenshot)

Am I missing something?

I hope this one is the right one  :)
Win32 Laz 2.0.12 FPC 3.2.0 AND Laz 3.4 FPC 3.2.2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10561
  • Debugger - SynEdit - and more
    • wiki
Re: Bug in TPageControl dark mode ?
« Reply #1 on: September 02, 2024, 09:17:00 pm »
DarkMode is a 3rd party plugin?

I don't use it, but presumingly there is only one? So people who use it will know which one? Otherwise, might be wise to tell which one you refer to.

In any case, while I have seen previous posts that some people on this forum *use* this plugin, I don't know if the author is here. So maybe you need to contact the author of the plugin.

chrv

  • Jr. Member
  • **
  • Posts: 68
Re: Bug in TPageControl dark mode ?
« Reply #2 on: September 02, 2024, 10:14:55 pm »
Thank for response.

Metadarkstyle 0.9.0.0 is indeed a 3rc party plugin.
The last post on this forum was from @d7_2_laz https://forum.lazarus.freepascal.org/index.php/topic,65530.15.html who seems to be the maintainer.

NB: I switched to Lazus 3.4
Win32 Laz 2.0.12 FPC 3.2.0 AND Laz 3.4 FPC 3.2.2

Alexx2000

  • Newbie
  • Posts: 6
Re: Bug in TPageControl dark mode ?
« Reply #3 on: September 02, 2024, 10:31:05 pm »
It simply does not support tpLeft and tpRight. This plugin based on my units. In the my project only tpTop and tpBottom are used.

zamtmn

  • Hero Member
  • *****
  • Posts: 640
Re: Bug in TPageControl dark mode ?
« Reply #4 on: September 02, 2024, 10:34:21 pm »
Hi. I confirm that the problem is present

chrv

  • Jr. Member
  • **
  • Posts: 68
Re: Bug in TPageControl dark mode ?
« Reply #5 on: September 03, 2024, 09:04:15 am »
Is it "easily" solvable ?
Win32 Laz 2.0.12 FPC 3.2.0 AND Laz 3.4 FPC 3.2.2

 

TinyPortal © 2005-2018