pickzy.com

C  |  C++  |  Objective-C  |  VC++  |  Win32  |  MFC  |  Java  |  Php  |  Delphi  |  Visual Basic  |  .Net  |  Networking  |  General  |  Games  |  Jobs  |  Javascript  |  




Menu

pickSourcecode.com


        

 




 

Delphi > Solution

 

Delphi - Changing forms Titlebar and Menu colors

Hi

I want to change the titlebar color from the windows 'blue' color to clMaroon and also
 the MenuSelectionColor.

Can anybody tell me how to do this. Currently I was trying to use the following code, but
 this doesnt seems to work..
________________________________________________________________________________________

CIndex : Integer;
CValue : Longint;

CIndex := COLOR_ACTIVECAPTION;
CValue := clMaroon;
SetSysColors(1, CIndex, CValue);

To adjust the colors from the ActionMenuBar I tried to set the colors of the ColorMap to 
clMaroon. These properties seem to be: btnSelectedColor, btnSelectedFont, Color

And in the Delphi it does changes to clMaroon but when I run the appl. the colors are 
still set on the windows clBtnFace.
Does anyone countered these problems and knows a sollution to it?

Reply With Quote 

Where are you calling this code from? OnFormCreate()?, OnFormShow()?
________________________________________________________________________________________

okay I fixed the problem of the MainMenuBar. I only changed it from in the property 
window but now I adjust it runtime it works fine.

Just in the FormCreate method

http:
//forums.devshed.com/delphi-programming-90/changing-forms-titlebar-and-menu-colors-314516.html

 
Privacy Policy | About Us