Page 1 of 1

InsertPicture problem

Posted: Mon Jun 16, 2008 1:06 pm
by cychia
I have a big picture example 1024 x 768.

to insert it into editor, i will make following calls:

1. RVE.InsertPicture
2. SetCurrentItemExtraIntProperty(rvepImageWidth, 80, True);
3. SetCurrentItemExtraIntProperty(rvepImageHeight, 80, True);

Since every time I will resize the inserted picture into 80x80, with the big picture like i have mentioned above with 1024x768. After the picture is inserted into the editor, I will see the picture first will be shown in original size, then resized to the 80x80.

Is there a way i can stop editor from drawing until i have finish calling the 3rd call?

Posted: Mon Jun 16, 2008 2:20 pm
by Sergey Tkachenko
Use rve.BeginUpdate ... rve.EndUpdate