Link to home
Start Free TrialLog in
Avatar of szayeri
szayeri

asked on

TXPManifest affects TEdit's text (D7)

I have a form with an edit box. At run time I press Alt+Shift (XP) to change language and set edit1.text. Setting CharSet to ARABIC_CHARSET every thing is ok. I can draw edit1.text on image1.canvas using above charset.
Now I add XPManifest1 to form1. I redo above procedure and obtain ????... .
Is edit1 using unicode characters inside? How can I use edit1.text, either by making edit1 act as normal or using a function to get the simple string?
In fact, how can I store edit1.text in a variable and draw it on image1.canvas when needed?
ASKER CERTIFIED SOLUTION
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of szayeri
szayeri

ASKER

Dear DragoSlaver
Thank you for your comment. I'm not searching for unicode-enabled components. I do know TNT (of course, I still do not know how to create and use unicode string tables!). I prefer NOT to use 3rd party components. My problem is with TEdit + TXPManifest.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of szayeri

ASKER

Thank you DragoSlayer
Your comment does not help or I could not use it.
I found something more interesting. Putting two TEdit and using Edit1.Text:=Edit2.Text in a button click after I have pressed Alt+Shift (as above) and Edit2.Text is in my languge (Arabic) sets those arabic characters of Edit1.Text to question marks and English characters are correct (both in Edit1.Text and Image1.Canvas)!
Is it a bug in D7?
I should say again that this problem does not happen without TXPManifest.
Can I use XP styles without using TXPManifest (if it helps)?
Avatar of szayeri

ASKER

I did not find the reason to my problem but I found that changing the windows "default language" to "Arabic" solves it.
Ofcourse, the above comments are quite true (as I know). So I have splitted the points to those who spent time to help me.
Thanks again!