FF_StatusBar_SetBgColor

Started by Richard Kelly, November 27, 2011, 06:05:44 AM

Previous topic - Next topic

Richard Kelly

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

José Roca

You need to disable themes for the status bar.

%USELOADLIBRARY
#INCLUDE "Uxtheme.inc"

SetWindowTheme(HWND_MAIN_STATUSBAR, "", "")

Richard Kelly

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