maxfax
maxfax

Reputation: 4315

Delphi: custom button in custom title bar - à la Firefox/Opera main menu button

I want to create 5 buttons in a title bar of a window using this way: http://delphihaven.wordpress.com/2010/04/19/setting-up-a-custom-titlebar/

Firefox has one button (the same for Opera):

Not maximized window

enter image description here

Maximized window

enter image description here

How to make such buttons for my purpose? Rounded/curved, with bevels, with/without an image, with/without a gradient. Are there similar components? Do I need to make it manually? If so, then how? If it's not a button then what is it? Is there an alternative for it?

Upvotes: 4

Views: 2632

Answers (1)

Nat
Nat

Reputation: 5453

For an example of a component that draws on the glass at the top of your form, check out the TRibbon control that comes with Delphi 2010 and above. The source code is included with Delphi. I'd bet that the button is simply an image with an alpha channel. The TRibbon code also draw controls like that on glass.

Upvotes: 1

Related Questions