J
Jon K.
But there is still some corrections to do:
You are assuming that a text starting with RTL chars is an RTL text,
that may be wrong.
The RTL should take in account the control's RightToLeft property.
Try this:
Set the RightToLeft property of a text box to RightToLeft.No
Write some RTL text in a text box and press the Enter key.
Get the EM_CHARFROMPOS for the last line, you will find that X is
the previous line Size that is wrong, it should return X = left margin.
Thank you for developing a system that supports the whole world's scripts.
I doubt that any thing is unclear in this post, anyway I can answer any
questions you may wish to ask if I know the answer.
JK
You are assuming that a text starting with RTL chars is an RTL text,
that may be wrong.
The RTL should take in account the control's RightToLeft property.
Try this:
Set the RightToLeft property of a text box to RightToLeft.No
Write some RTL text in a text box and press the Enter key.
Get the EM_CHARFROMPOS for the last line, you will find that X is
the previous line Size that is wrong, it should return X = left margin.
Thank you for developing a system that supports the whole world's scripts.
I doubt that any thing is unclear in this post, anyway I can answer any
questions you may wish to ask if I know the answer.
JK