Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > OOP Powerplant for Mac > How to display ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 443 of 484
Post > Topic >>

How to display StandardAlert in Powerplant while localization

by "Neel" <nilesh_ibmr@[EMAIL PROTECTED] > Mar 2, 2006 at 06:21 AM

Hi
    Trying to display StandardAlert in Powerplant while localization.
Want to display simplified chinese string .i.e.Str255 dst =3D
"\p=CA=C4=AA=C8=F2=E0=C2=C4=BA"; which is already converted to UTF8, using
=
XCODE
IDE. The original en string is "Global Threshold".  Now I am trying to
display it using StandardAlert in PP, but it does not display any
characters at all....Have a look at the following code snippet....

***************************************************************************=
***
AlertStdAlertParamRec SARecord;
SInt16* outItemHit;
Str255 dst =3D "\p=CA=C4=AA=C8=F2=E0=C2=C4=BA";

CFStringRef cfS  =3D NULL;
SARecord.filterProc =3D nil;
SARecord.movable =3D true;
SARecord.helpButton =3D false;
SARecord.defaultText =3D "\pYes";;
SARecord.otherText =3D "\pNo";;
SARecord.cancelText =3D "\pCancel";;
SARecord.defaultButton =3D kAlertStdAlertOKButton;
SARecord.cancelButton =3D kAlertStdAlertCancelButton;
SARecord.position =3D kWindowDefaultPosition;

cfS =3D CFStringCreateWithPascalString(kCFAllocatorDefault, dst,
kCFStringEncodingUTF8);
ConstStringPtr uStr =3D CFStringGetPascalStringPtr(cfS,
CFStringGetSystemEncoding());

::StandardAlert(kAlertNoteAlert,"\pUnicode Message" ,uStr, &SARecord,
outItemHit);
***************************************************************************=
*****************************


Thanks for all help.
Regards,
Neel
 




 4 Posts in Topic:
How to display StandardAlert in Powerplant while localization
"Neel" <nile  2006-03-02 06:21:49 
Re: How to display StandardAlert in Powerplant while localizatio
Stephen Chu <stephen@[  2006-03-02 11:28:22 
Re: How to display StandardAlert in Powerplant while localizatio
"Neel" <nile  2006-03-08 06:43:22 
Re: How to display StandardAlert in Powerplant while localizatio
"Neel" <nile  2006-03-09 21:04:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 10:07:23 CST 2008.