Changing color of form title bar

Posted on 1998-08-23
Medium Priority
Last Modified: 2011-09-20
Is there a way to change the color of the title bar (other than changing the Windows colors).  

Also, is there a way to have a window border but without the title bar ?
Question by:sharons

Accepted Solution

erajoj earned 200 total points
ID: 1337462
1. Yes, check, for instance, TRxGradientCaption in RXLib.
2. Yes:

  TForm1 = class(TForm)
    procedure WMNCHitTest( var Msg: TWMNCHitTest ); message WM_NCHitTest;
    procedure CreateParams( var Params: TCreateParams ); override;
  procedure TForm1.CreateParams( var Params: TCreateParams );
    inherited CreateParams( Params );
    with Params do Style := ( Style or WS_POPUP ) and ( not WS_DLGFRAME );

procedure TForm1.WMNCHitTest( var Msg: TWMNCHitTest ); // client area as titlebar, for dragging
  if ( Msg.Result = htClient )
  then Msg.Result := htCaption;

/// John


Author Comment

ID: 1337463
Thank you.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question