[C#] Non-Client Area Menu Button

AceInfinity

Emeritus, Contributor
Joined
Feb 21, 2012
Posts
1,728
Location
Canada
I've been working on this for the past while. It's going to be an implementation of a newer app i'm developing currently (bigger project). The only thing is that this will not work in Classic mode from what i've seen, so in program.cs i'll have some logic in there possibly as to what will be drawn out on the main form when the user starts the program eventually, to see if I can get that working. And hopefully it's easily adaptable by doing so. I think this is where some custom interfaces might come in handy... Here's a preview of what it looks like so far:

1Ce3K.png


Pretty close to the way FireFox looks, only they've got some crazy stuff going on with the tabs as well in the non-client area of the form, depending on the WindowState, and also depending on whether the MenuBar is enabled or not.

This is my beginning to the revised version of AutoBlue i'm working on at the moment. Before I get to any dumps processing though, hopefully this won't take too long... Because it's been quite a bit of troubleshooting and code so far lol...
 
Thanks for the feedback, now i'm working on aero vs. non-aero detection, so that when my app starts up, it will determine how to be displayed. If I choose to provide support for people not using aero. Pretty much got that figured out as well. :)
 
I don't have a download for it, but it would be pretty hard to integrate with your own program because it's not quite easily maintainable; it's integrated in with my app itself and not easy to "take out."

Look into the ToolStripProfessionalRenderer Class, and NCHITTEST windows messages for hit testing on the non-client form area. The menu can be anything... For me it was a ContextMenu, and I invoked it with a start position to get it to display under that menu each time the "menu" was clicked.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top