Link to home
Start Free TrialLog in
Avatar of MikeMinton
MikeMinton

asked on

Form title bar font and colour?????

Hi All

I new to this area and i think that this question may be a little tricky....

I want to change the title bar colour from the windows standard to a chosen colour of my choice, preferably a different colour and may be a fade, but i also want to change the font.

The key point is that i do not want to change this for all programs running, just the one i want to distribute.

This code must work for all Ms Windows platforms, from Windows 95 and beyond.

Any help would be grateful.

Thanks all.
Avatar of marconovaro
marconovaro


You can do something like this:
draw a picturebox in the form, and set the border of the form to "None".
Then, you'll need subclassing in order to know when the user tries to click your new caption bar.
Here is an example (with code) of how to do that:

"Moving Forms and Creating Resize Gripper Boxes"
http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Reliable_Interception_of_WM_NCHITTEST/article.asp

Hope this helps
M
right, marco

mike, you'll essentially need to create your own titlebar since windows draws the title bar and not the program.
Avatar of MikeMinton

ASKER

Thanks M

But, only problem with your code is that the form then no longer becomes 3d and looks quite basic, not only that but the picture box is only a single colour.

Thanks

Mike
Does anyone then know how to make a form 3d if the form has no border?
Does anyone then know how to make a form 3d if the form has no border?
ASKER CERTIFIED SOLUTION
Avatar of marconovaro
marconovaro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DanRollins
Hi MikeMinton,
It appears that you have forgotten to close this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Split points between: marconovaro and BWarmuskerken

MikeMinton, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept THIS comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer