Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List button height



Use GetThemeMetric with the parameter kThemeMetricListHeaderHeight. There
are a number of metrics for other UI elements in Appearance.h that you can
get, too, should you need those sizes as well.
________________________________________________________________________
Gary L. Wade
Product Development Consultant
DesiSoft Systems | Voice: 214-642-6883
9619 E. Valley Ranch Parkway | E-Mail: email@hidden
Suite 2125 | Web: http://www.desisoftsystems.com/
Irving, TX 75063 |

Want a name worthy of a Star Wars character?
Download DSS Name Convoluter today from DesiSoft Systems at
http://www.desisoftsystems.com/
________________________________________________________________________

On 8/30/03 8:47 AM, "Trygve Inda" <email@hidden> wrote:

> When I call:
>
> buttonInfo.state = IsControlActive (theControl) ? kThemeStateActive :
> kThemeStateInactive;
>
> buttonInfo.value = kThemeButtonOff;
> buttonInfo.adornment = kThemeAdornmentDefault;
> DrawThemeButton (&controlBounds, kThemeListHeaderButton, &buttonInfo,
> &buttonInfo, nil, nil, nil);
>
> How can I know what the real height will be? It does not fill the full
> height of the rectangle. I want to be sure that if the OS changes the height
> in the future, my code will not break.
>
> Thanks,
>
> Trygve
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >List button height (From: Trygve Inda <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.