Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TXPManifest affects TEdit's text (D7)

Posted on 2004-10-11
6
Medium Priority
?
418 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:szayeri
  • 3
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 375 total points
ID: 12278321
In order to use Unicode, you have to use the Unicode-enabled 3rd party controls at http://tnt.ccci.org/delphi_unicode_controls/
0
 

Author Comment

by:szayeri
ID: 12287908
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.
0
 
LVL 14

Assisted Solution

by:DragonSlayer
DragonSlayer earned 375 total points
ID: 12289667
How did you draw the text? If I recall correctly, you need DrawTextW in order to draw in unicode.
0
 

Author Comment

by:szayeri
ID: 12299188
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)?
0
 

Author Comment

by:szayeri
ID: 13362786
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!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question