Mailing Lists: Apple Mailing Lists

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

HIThemeDrawPaneSplitter and DrawThemeTextBox



I modified the splitter sample code to suit my needs. I came across HIThemeDrawPaneSplitter() which I now use if GetHIToolboxVersion() >= 0x130 since the sample code draws the splitter using images. However, HIThemeDrawPaneSplitter() only draws the beveled circle in the splitter, not the rest of the splitter. This seems odd since I can't seem to figure out the point of an adornment of kHIThemeSplitterAdornmentMetal if only the beveled circle is drawn. I ended up preceding the call to HIThemeDrawPaneSplitter() with HIThemeDrawPlacard() to duplicate the look of Mail's splitter. Is this correct or is HIThemeDrawPaneSplitter() really supposed to draw the whole thing and I'm doing something wrong?

I also looked into HIThemeDrawGrabber() which the header file claims to work in 10.3 but it doesn't (it does work in 10.4)... after seeing it, I'm still not sure what it is.

Also, in my custom list view, I use HIThemeDrawTextBox() if GetHIToolboxVersion() >= 0x130 and DrawThemeTextBox() otherwise (along with TruncateThemeText()). I'm finding that I have to do an EraseRect() before DrawThemeTextBox() or else the text draws over itself when scrolling. Is this normal?

-Chinh Nguyen
 email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to 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.