[RESOLVED] Add Control to Form Titlebar?
Does anyone know how i would go about adding a control (a button) to the windows title bar area?
Sort of like firefox does.
http://img89.imageshack.us/img89/4451/234234fx.png
I'm doing this so i can remove the Toolstrip Menubar at the top of my application to give it my "working area".
Thanks guys.
Re: Add Control to Form Titlebar?
That comes from using custom window management/rendering code in Firefox. Basically, rather than ask Windows for a standard Windows frame like every other program, Firefox provides it's own detailed graphical instructions to the system. There's no easy way to do something like that without a LOT of heavy graphical programming.
Re: Add Control to Form Titlebar?
Quote:
Originally Posted by
Jenner
That comes from using custom window management/rendering code in Firefox. Basically, rather than ask Windows for a standard Windows frame like every other program, Firefox provides it's own detailed graphical instructions to the system. There's no easy way to do something like that without a LOT of heavy graphical programming.
Damn it!
Thanks mate.
Re: Add Control to Form Titlebar?
What is it that you are attempting? It sounds like there might be a way around the problem. After all, you mentioned removing the toolstrip menu bar, as well as adding something to the caption. You can remove the caption without much difficulty, so if this is a matter of getting more screen area, then that would have the same result. Alternatively, you might remove the caption and add labels, buttons, and so forth to a band at the top of the captionless form that looked something like a caption, but was actually part of the form.
So there might be other, easier, ways to get the visual effect that you desire without the painful process of writing controls to the window caption itself.
Re: Add Control to Form Titlebar?
Quote:
Originally Posted by
Shaggy Hiker
What is it that you are attempting? It sounds like there might be a way around the problem. After all, you mentioned removing the toolstrip menu bar, as well as adding something to the caption. You can remove the caption without much difficulty, so if this is a matter of getting more screen area, then that would have the same result. Alternatively, you might remove the caption and add labels, buttons, and so forth to a band at the top of the captionless form that looked something like a caption, but was actually part of the form.
So there might be other, easier, ways to get the visual effect that you desire without the painful process of writing controls to the window caption itself.
I'm trying to do exactly what the firefox button does.
It's removes the need for a menu to be visible all the time, and when you click the "FireFox" button it cascades the "menu's" from that button.
And i need the button in the title bar otherwise i don't gain those 20 extra pixels in height.
I found a source here - http://www.codeproject.com/KB/vb/tra...lebuttons.aspx
But it doesn't seem to work on my computer (don't think it was made for windows 7).
Re: Add Control to Form Titlebar?
Re: Add Control to Form Titlebar?
Ahh sweet thats what i'm after, thanks!
Just gotta spend a bit of time trying to convert this to vb :)
Re: [RESOLVED] Add Control to Form Titlebar?
Well...it didn't convert to VB very well :( (or rather i suck at trying to convert C)