Author | Message | Time |
---|---|---|
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. | February 5, 2003, 12:44 AM |
Grok | Not easily. Go to www.vbAccelerator.com and download their free open-source menu for Visual Basic. It does what you want. | February 5, 2003, 1:07 AM |
haZe | But you can you change the color of the bar or not? ;) :P | February 5, 2003, 4:59 PM |
Grok | 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 | February 6, 2003, 12:40 AM |