Page 1 of 1

rvespAlt

Posted: Thu Jul 26, 2007 5:10 pm
by tom@qualtar.co.uk
I have used AddHotPictureTag to add a bitmap to a TRichViewEdit.

I then use SaveHTMLToStreamEx to create HTML.

I want the set the HTML Alt text for the bitmap presumably using rvespAlt but how do I do it?

Regards

Thomas Davenport

Posted: Thu Jul 26, 2007 6:01 pm
by Sergey Tkachenko
...
rv.AddHotPictureTag(...);
rv.SetItemExtraStrProperty(rv.ItemCount-1, vespAlt, 'Image');
...

rvespAlt

Posted: Fri Jul 27, 2007 5:48 am
by tom@qualtar.co.uk
Hello Sergey,

I know I am being stupid but when I use the code you sent Delphi returns

[Error] Gash5P.pas(120): Undeclared identifier: 'vespAlt'

I have RVItems in the uses clause at the top but I cannot see how to access the extra properties.

Regards

Thomas Davenport

Posted: Fri Jul 27, 2007 7:02 am
by Sergey Tkachenko
Sorry, I missed "r" - it must be not vespAlt but rvespAlt.

Posted: Fri Jul 27, 2007 11:02 am
by tom@qualtar.co.uk
Thank you Sergey, that works perfectly. Don't know why I didn't see that.

Regards

Thomas