PDA

View Full Version : Property setting for EDIT Control


David Chua
10-27-2006, 03:28 AM
The property setting "ES_CENTER" for EDIT control (Text display) doesn't work on the pocketpc side, it seems like permanent fixed at left justified. However, it works correctly at the pc side.

Please advise.

Cheers.

kornalius
10-27-2006, 12:14 PM
Hi David,

From Microsoft:

http://support.microsoft.com/kb/180756

"When you set the Alignment property of a TextBox, it has no affect on the justification of the text placed inside a TextBox. The text always appears justified on the left. This happens both on the Windows CE device and within the emulator. "

"The ES_RIGHT and ES_CENTER edit styles in Windows CE are only supported when the MultiLine property is set to True."

David Chua
10-27-2006, 01:24 PM
Thanks, will try out further.

Cheers.

David Chua
10-28-2006, 04:57 AM
Thanks, it works the way I want now.

Cheers.

kornalius
10-28-2006, 03:28 PM
Can you share with us what you did to make it work? It would greatly appreciated.

David Chua
10-29-2006, 04:05 AM
Sorry, I didn't mention that earlier. I use your recommandation by setting the Multiline property enen though I only need to use it as a single line status display. By setting the Multiline property, the ES_CENTER just simply work.

Cheers.

kornalius
10-29-2006, 02:13 PM
Thank you very much.