rvespAlt

General TRichView support forum. Please post your questions here
Post Reply
tom@qualtar.co.uk
Posts: 6
Joined: Thu Jul 26, 2007 4:28 pm
Location: Birmingham

rvespAlt

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

...
rv.AddHotPictureTag(...);
rv.SetItemExtraStrProperty(rv.ItemCount-1, vespAlt, 'Image');
...
tom@qualtar.co.uk
Posts: 6
Joined: Thu Jul 26, 2007 4:28 pm
Location: Birmingham

rvespAlt

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, I missed "r" - it must be not vespAlt but rvespAlt.
tom@qualtar.co.uk
Posts: 6
Joined: Thu Jul 26, 2007 4:28 pm
Location: Birmingham

Post by tom@qualtar.co.uk »

Thank you Sergey, that works perfectly. Don't know why I didn't see that.

Regards

Thomas
Post Reply