How can I put a custom button on the title bar?

4.9k Views Asked by At

Possible Duplicate:
Non client painting on aero glass window

I want to have a button like Skype's compact-view button on the title bar. How can I do that?

For example:

Vista-style title bar with an extra button to the left of the minimize button

1

There are 1 best solutions below

1
On

You can use the JvCaptionButton which comes free in the very-nice-but-very-large open-source free JVCL library. It is a general purpose "caption button". Caveat: The appearance is not purely native and not Windows-7-aero-themed.

This button does not decide what to take out of your app, you would have to write the code to make the form go into compact mode, and you could click this caption-bar button, and write the code in its OnClick Event.

enter image description here

At runtime:

enter image description here