Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / February 2005



Tip: Looking for answers? Try searching our database.

localizing Tab titles with PowerPlant (exotic encodings)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
michaelb - 22 Feb 2005 20:51 GMT
Hi,

I am new to powerplant. I am to localize an application in polish,
greek etc. I’ve almost done 90% of the code adaptation to use CFString
in all the text control using SetCFDescriptor.

The probleme remains when I want the text to be displayed in the right
encoding in the title tabs.

Anyone help ?

Thx

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

Isaac Wankerl - 23 Feb 2005 20:43 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.