
Signature
Posted using the http://www.macforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.macforumz.com/Powerplant-localizing-Tab-titles-exotic-encodings-ftopi
ct144089.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.macforumz.com/eform.php?p=564671
> Hi,
>
[quoted text clipped - 8 lines]
>
> Thx
Here's the HIToolbox way of changing the tab's name with a CFString:
ControlTabInfoRecV1 tabInfo = { kControlTabInfoVersionOne,
0, CFSTR("tab name") };
SInt16 tabIndex = 1; // 1-based index of the tab to change
status = ::SetControlData(tabControlRef, tabIndex,
kControlTabInfoTag, sizeof(tabInfo), &tabInfo);

Signature
Isaac Wankerl
Metrowerks
Michael Boulade - 24 Feb 2005 16:12 GMT
Isaac Wankerl <iwankerl@yahoo.com> wrote in message news:<iwankerl
> Here's the HIToolbox way of changing the tab's name with a CFString:
>
[quoted text clipped - 3 lines]
> status = ::SetControlData(tabControlRef, tabIndex,
> kControlTabInfoTag, sizeof(tabInfo), &tabInfo);
Thanks Isaac.
So if I understand correcty I can use the system call on a ControlRef.
I've explored the PowerPlant objects hierarchy but I can't figure out
which object to use as a ControlRef. Do I use my LTabsControl or my
LMutlipaneView or anything else ?
Mike
Isaac Wankerl - 24 Feb 2005 17:57 GMT
> Isaac Wankerl <iwankerl@yahoo.com> wrote in message news:<iwankerl
> > Here's the HIToolbox way of changing the tab's name with a CFString:
[quoted text clipped - 13 lines]
>
> Mike
With PowerPlant you can do this:
tabsControl->SetDataTag(tabIndex, kControlTabInfoTag,
sizeof(tabInfo), &tabInfo);

Signature
Isaac Wankerl
Metrowerks
Michaël Boulade - 24 Feb 2005 23:27 GMT
>> Isaac Wankerl <iwankerl@yahoo.com> wrote in message news:<iwankerl
>>> Here's the HIToolbox way of changing the tab's name with a CFString:
[quoted text clipped - 18 lines]
> tabsControl->SetDataTag(tabIndex, kControlTabInfoTag,
> sizeof(tabInfo), &tabInfo);
OK, thanks for your help.
Mike