Recent

Author Topic: Bug with TPageControl dark mode ?  (Read 323 times)

chrv

  • Jr. Member
  • **
  • Posts: 68
Bug with TPageControl dark mode ?
« on: August 30, 2024, 03:07:53 pm »
Hello everyone,

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 (use uDarkStyleParams, uWin32WidgetSetDark, uDarkStyleSchemes, uMetaDarkStyle and create a procedure to activate Dark mode [here it is SetDarkStyle])
4/ By compiling at this time, everything should be normal: Dark mode as expected.
5/ On the other hand, if you switch to vertical mode (TabPosition:=tpLeft), then the DarkMode aspect disappears at the level of the TabSheet rows.
(see attached démo and screenshot)

Am I missing something?
Win32 Laz 2.0.12 FPC 3.2.0 AND Laz 3.4 FPC 3.2.2

chrv

  • Jr. Member
  • **
  • Posts: 68
Re: Bug with TPageControl dark mode ?
« Reply #1 on: September 01, 2024, 04:02:23 pm »
To say it simpler : is it normal ? (see attachaded)
Win32 Laz 2.0.12 FPC 3.2.0 AND Laz 3.4 FPC 3.2.2

 

TinyPortal © 2005-2018