Ali Ghorbani wrote:
Florian:


I'd like to ask if anybody has ever tried to achieve this for
Scintilla? Has anybody already found the "stumbling blocks"?


Neil has been useing the API "ExtTextOut" in rendering the text to the
window. If you refer to the API documentation at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_2ks4.asp

You will see that this API has built in RTL support. So if we set the
style of the control to WS_EX_LAYOUTRTL the text will be rendered
properly and there is no need for special orientation and positioning
calculations.
The API will be responsible in this effort.
I wrote a sample and everything went fine.

It should be noted that even if this usage did NOT conflict with some other functionality of or state maintained by Scintilla, this approach is ONLY applicable to the Windows platform...


Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to