I have TRichViewEdit height set to 22. When I enter text all is fine but soon as I insert 16x16 image, the text moves down. How can I stop this from occuring?
Btw do you think you'll ever add support so TRichViewEdit could be used in single line mode like TEdit? I can already do it myself but maybe a SingleLine property?
As for single line editor,
1) Include rvoDoNotWantReturns in Editor.EditorOptions
2) Forbid d&d (exclude all options from AcceptDragDropFormats)
3) Process OnPaste to allow inserting only one line text
I think it's because a height of document is increased after inserting a picture, and now it takes one more scrollbar step, so it can be scrolled down. By default, scrollbar step = 10 pixels.
You can set it to 1 before calling Format, it may help
I might be wrong but isn't it something to do with image vertical alignment ? On the second picture, the image is clearly baseline aligned. The new middle alignment should solve this I think.