Recent

Author Topic: Visibility of groupboxes in Windows Vista  (Read 7411 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
Visibility of groupboxes in Windows Vista
« on: March 26, 2010, 03:45:06 pm »
Hi all,

In XP, the GroupBox caption is blue while its border is a distinctive visible shade of grey. In Vista however, the groupbox caption is black & its border looks engraved on the form!

Does anyone know how I can mimic the XP look of groupboxes in Vista?

Thanks for your suggestions!  :D
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Visibility of groupboxes in Windows Vista
« Reply #1 on: March 26, 2010, 07:19:19 pm »
I think that is controlled by Windows.
Lazarus/FPC on Linux

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Visibility of groupboxes in Windows Vista
« Reply #2 on: March 26, 2010, 08:10:52 pm »
I think that is controlled by Windows.

Is there any way to override that behaviour? Will it involve looking at Win32 API functions?
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Visibility of groupboxes in Windows Vista
« Reply #3 on: March 26, 2010, 09:59:47 pm »
I don't know whether that is possible or not. However, each widget set has its own design and consistency. What you are asking is equivalent to: "Can I change the widget set look and feel for my application?" As a user I would expect an application running on XP to have the XP look and feel; the same on Vista.
Lazarus/FPC on Linux

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Visibility of groupboxes in Windows Vista
« Reply #4 on: March 27, 2010, 12:43:16 am »
As a user I would expect an application running on XP to have the XP look and feel; the same on Vista.

You have a point there but it wouldn't hurt to be able to change just the caption of the groupbox to blue colour like XP.

So I guess I'm just thinking wishfully!  :-\ 
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

José Mejuto

  • Full Member
  • ***
  • Posts: 136
Re: Visibility of groupboxes in Windows Vista
« Reply #5 on: March 27, 2010, 08:12:59 pm »
As a user I would expect an application running on XP to have the XP look and feel; the same on Vista.
You have a point there but it wouldn't hurt to be able to change just the caption of the groupbox to blue colour like XP.
So I guess I'm just thinking wishfully!  :-\ 

Hello,

The right behavior in this case is to change your Vista theme to match your requirements. More information http://blog.rioterdecker.net/blogs/chaz/archive/2006/03/06/100.aspx

 

TinyPortal © 2005-2018