its seems like the right margin doesnt work...
you can see the margin blank but the text doesnt get compacted.
Works in every application I have used it in. Perhaps you're expecting a different behaviour? The method just sends the EM_SETMARGINS message to the control, no other processing is done.
does Ibasic pro was doing the samething? because if i look at my ibasic pro build, the right margin does compact the text.
the left margin work correctly, the text start at the distance specified, but for the right instead of changing line it continue on the same.
i dont have the pro code of this program anymore (lost it in my last hd crash) just got a compiled build, but i dont think i was doing anything else to wrap the words to the next line.
Yes. IBasic Pro just sends the EM_SETMARGINS message. It's up to the control to process the message. Perhaps your not using the same style on the control you were before?
humm maybe ..
ill check that out, this didnt came to my mind ;)
do you have any Richedit control styles list done?
because i saw none in the user guide.
For the moment i use the dialog editor to get the styles, ive set all scrolls and want return, but maybe i'm missing somes?
found it...
don't use Auto Horizontal scroll for this task ;)
;) Yep that would do it. Auto H assumes a single line control and won't wrap at the margins.