Component on glass area
Asked Answered
A

1

8

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

control in glass area

Thanks!

Avalon answered 3/1, 2013 at 21:39 Comment(7)
There's a similar question with answers [here][1] [1]: #3365148Massorete
See this article by Chris Rolliston, setting-up-a-custom-titlebar and study this component by Paul Thornton, TChromeTabs.Fernald
@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 :)Kwangchow
@norgepaul, your component really looks nice, good news that it soon can be fit into the title area.Fernald
@LU RD - Thanks for the kind words :)Kwangchow
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)Waterrepellent
@LU RD - TChromeTabs now supports drawing the tabs in the title bar.Kwangchow
K
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

Kwangchow answered 3/1, 2013 at 22:18 Comment(1)
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.Kwangchow

© 2022 - 2024 — McMap. All rights reserved.