8

How do I put a control (button, panel, pagecontrol, label) in the glass area of a windows form?

control in glass area

Thanks!

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479
Giacomo King Patermo
  • 829
  • 3
  • 13
  • 25
  • There's a similar question with answers [here][1] [1]: http://stackoverflow.com/questions/3364648/delphi-button-on-glass-best-looking-third-party-button-component – LaKraven Jan 03 '13 at 22:03
  • 1
    See this article by Chris Rolliston, [setting-up-a-custom-titlebar](http://delphihaven.wordpress.com/2010/04/19/setting-up-a-custom-titlebar/) and study this component by Paul Thornton, [TChromeTabs](http://www.easy-ip.net/tchrometabs.html). – LU RD Jan 03 '13 at 22:15
  • 1
    @LU RD - I think the OP wants to draw in the title bar, not just draw on glass. Currently, TChromeTabs won't help him much as it can't yet draw the tabs in the title area. Hopefully it will soon though :) – norgepaul Jan 03 '13 at 22:20
  • @norgepaul, your component really looks nice, good news that it soon can be fit into the title area. – LU RD Jan 03 '13 at 22:26
  • @LU RD - Thanks for the kind words :) – norgepaul Jan 03 '13 at 23:09
  • Keep in mind that applications such as this are using Microsoft's Ribbon control, which is actually a licensed product and is available in later versions of Delphi. It automatically draws in the title section exactly as the application above (which in fact is using the ribbon control) – Jerry Dodge Jan 04 '13 at 00:50
  • @LU RD - TChromeTabs now supports drawing the tabs in the title bar. – norgepaul Jan 04 '13 at 17:06

1 Answers1

9

Chris Rolliston explains how to do this in his article: http://delphihaven.wordpress.com/2010/04/22/setting-up-a-custom-title-bar-reprise/.

A demo project can be downloaded here: http://cc.embarcadero.com/Item/27688

norgepaul
  • 6,013
  • 4
  • 43
  • 76
  • I've just implemented the title bar tab functionality in TChromeTabs. If you grab the latest code from subversion you can see how I did it. Look at ChromeTabsGlassForm.pas. – norgepaul Jan 04 '13 at 17:05