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.
ID:318467
Feb 18 2012, 9:00 pm
|
|
Apr 3 2012, 7:21 pm
|
|
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
|