How rvvaMiddle works?
Posted: Sun Nov 19, 2006 5:20 pm
Hi
I have a picture with height 100px. I add it to RichView and insert some long text after that:
The document layout is something like this:
I want to change this behavior to wrap the text along with the picture. some thing like this:
I checked rvvaBaseLine and it's not working too. Is it possible? how?
I have a picture with height 100px. I add it to RichView and insert some long text after that:
Code: Select all
var
Bitmap: TBitmap;
begin
Bitmap := TBitmap.Create;
Bitmap.LoadFromFile('C:\test.bmp');
RV.AddPictureEx('', Bitmap, -1, rvvaMiddle);
RV.AddNL(Memo1.Text, 0, -1);
RV.Format;
Code: Select all
----------------------
| |
| |
| |
| |
| |Bla bla bla bla bla bla bla bla bla bla bla bla
| |
| |
| |
| |
----------------------
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla ......
Code: Select all
----------------------
| |Bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
| |bla bla bla bla bla bla bla bla bla bla bla bla
----------------------