1

Possible Duplicate:
Resources for Windows Aero Glass and Compositing (DWM)
Insert button into window title bar

I am Using Delphi 2010.

I was wondering if there was a way to add a custom button to the left of the minimize, maximize, and close buttons. A button that has a onClick event assigned to it?

This would be used on both modal and non-modal forms.

Thanx!

Community
  • 1
  • 1
IElite
  • 1,818
  • 9
  • 39
  • 64
  • Very hard to do well with Aero – David Heffernan Feb 09 '12 at 18:34
  • 4
    possible duplicate of [Insert button into window title bar](http://stackoverflow.com/questions/8631276/insert-button-into-window-title-bar) and [How can I put a custom button on the title bar?](http://stackoverflow.com/questions/7789064/how-can-i-put-a-custom-button-on-the-title-bar) and [Non client painting on aero glass window](http://stackoverflow.com/questions/5634743/non-client-painting-on-aero-glass-window). What research did you do prior to asking this question? – Rob Kennedy Feb 09 '12 at 19:16
  • See also this question: http://stackoverflow.com/questions/3822609/resources-for-windows-aero-glass-and-compositing-dwm – David Feb 10 '12 at 10:33

1 Answers1

5

For forms with aero disabled or when your system run in Windows XP you can use the TJvCaptionButton (part of the JVCL) component, otherwise you must draw the button in the non client area using the DWM (Desktop Window Manager ) functions. Try these articles for an example.

RRUZ
  • 134,889
  • 20
  • 356
  • 483