PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Richard Kelly on November 27, 2011, 06:05:44 AM

Title: FF_StatusBar_SetBgColor
Post by: Richard Kelly on November 27, 2011, 06:05:44 AM
The background color of my forms status bar does not change using:


FF_StatusBar_SetBgColor (HWND_MAIN_STATUSBAR, Rgb(218,232,245))


in the forms CREATE function.

Am I doing something wrong? Theme support is enabled. It works with Theme support disabled although the gripper control background color does not also change over to the color. I need Theme support for my listview controls to paint the up/down arrows on sortable columns. Perhaps I'm out of luck here.

Rick Kelly
Title: Re: FF_StatusBar_SetBgColor
Post by: José Roca on November 27, 2011, 01:17:00 PM
You need to disable themes for the status bar.

%USELOADLIBRARY
#INCLUDE "Uxtheme.inc"

SetWindowTheme(HWND_MAIN_STATUSBAR, "", "")
Title: Re: FF_StatusBar_SetBgColor
Post by: Richard Kelly on November 29, 2011, 12:39:05 AM
Quote from: Jose Roca on November 27, 2011, 01:17:00 PM
You need to disable themes for the status bar.

%USELOADLIBRARY
#INCLUDE "Uxtheme.inc"

SetWindowTheme(HWND_MAIN_STATUSBAR, "", "")

I put %USELOADLIBRARY = 1 at the very top of my FF_APPStart module. In the forms CREATE method I added the SetWindowTheme. The status bar did get my new background color except that he gripper had a white background. Is there anything to be done about that?

Rick Kelly