• Welcome to Valhalla Legends Archive.
 

How to change VB menus colors??

Started by gotcha_ass, February 04, 2003, 06:44 PM

Previous topic - Next topic

gotcha_ass

Is this even possible, I am not really diggin the vbGrey for my bot it doesnt match my decorating scheme  ;D
Or even change the color of the title bar would be awesome.

Grok

#1
Not easily.

Go to www.vbAccelerator.com and download their free open-source menu for Visual Basic.  It does what you want.

haZe

#2
But you can you change the color of the bar or not? ;)
 :P

Grok

#3
The menu is not the same as the caption.

If you want to change the caption color, you can do that by changing system colors.  However, that will affect every caption color of windows created from standard Windows' styles.

However, in Visual Basic it is quite easy to roll-your-own caption bar.  Create a new form.  Set the caption string to empty.  Turn off the control box.  Now draw a picture box on the form, and in the form's resize event, Picture1.Move 0,0,Me.ScaleWidth, 345.  You can set the picture box background color to whatever.  Or, more fun, display a picture in it.

To allow it to handle dragging, trap MouseDown and code appropriately.

Doing it like this, your homegrown caption bar can be down the left edge if you wanted.  Or hey, it could be down the middle of your form!  You could make it a circle in the middle if you wanted.

HTH.
Grok