Custom Title Bar

by PopLava
Custom Title Bar
Simple example showing how to create your own title bars
The windows themed title bar can be ugly at times. This example shows how to remove the windows title bar and replace it with your own. Includes a demonstration of minimizing, restoring, full screen, and dragging.

2/20/2012 - v1.1
- Cleaned up source code a little bit.
I was not aware that you could drag a window around using that method. Expanding upon your idea, I used three labels to create a "textured" title bar; one for each the right and left sides, and an expandable label in the center. This allowed the title bar to have an image and to resize accordingly with with window. Unfortunately, the redraw on the labels flickers repulsively. I may report that as a bug, but thank you, for this demo as a starting point.
Yeah, Windows programmers have been using the "disabled label" trick for this for as long as I can remember. I'm actually surprised it works on BYOND windows but at the same time I can't think of a reason why it wouldn't.
it works great but there is a bug I believe with labels where the first lien only of the text is colored when disabled and anything after that is grayed out which sucks
Not sure I follow you. Can't find any buggy behavior in the example. Are you talking about something outside of the example?