Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread CaptionBar height
Fri, Jul 5 2013 9:09 AMPermanent Link

Matthew Jones

Is there a way to know how high the caption bar on a TPanel is at run time? The
TPanel has a CaptionBar part which belongs to the ThemeParts, but they are not
public. I want to position a form to the location of a button on a panel, but have
to fudge it with a constant.

/Matthew Jones/
Mon, Jul 8 2013 2:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Is there a way to know how high the caption bar on a TPanel is at run
time? >>

Use this code:

Forms:

  ThemeManager.Parts['frm_cap'].Height;

Panels:

  ThemeManager.Parts['pnl_cap'].Height;

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jul 9 2013 8:41 AMPermanent Link

Matthew Jones

>    ThemeManager.Parts['pnl_cap'].Height;

Thanks. Applied.

/Matthew Jones/
Image