On Sunday, Oct 5, 2003, at 01:47 Europe/London, Ken Shmidheiser wrote: > Bernie asked: > >> We can get a control rect with fn >> FBGetControlRect(button&(ctrlID),r) >> but any ideas how I can get individual tab rects of a tab control? > > Since a tab is irregularly shaped (it has rounded corners) you obtain > the region rather than the rect. Here is the code you need to obtain > a handle to the region. If you need a demo, let me know. > toolbox fn GetThemeTabRegion ( const Rect *inRect,¬ > ThemeTabStyle inStyle,¬ > ThemeTabDirection inDirection,¬ > RgnHandle ioRgn ) = OSStatus > <code snip> I'm not very good with these toolbox thingies, Ken, so a demo would be much appreciated. You probably know what I'm after - I want to detect which tab was clicked on an inactive control. Thanks Bernie