[futurebasic] Re: [FB] Re: Getting tab rects

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2003 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Sun, 5 Oct 2003 06:10:48 +0100
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