Getting Name of HotPicture!

General TRichView support forum. Please post your questions here
Post Reply
Tim

Getting Name of HotPicture!

Post by Tim »

Hello!

I add HotPicture to the document like this:

Code: Select all

RVE.AddHotPictureTag('Edit', EditBMP, -1, rvvaBaseline, DM.SearchQuery.FindField('StoriesID').AsInteger);
At OnJump event using follwing line of code I get Tag number of hot picture:

Code: Select all

var
  ItemNo: Integer;
  RVData: TCustomRVFormattedData;
begin
  RVE.GetJumpPointLocation(id, RVData, ItemNo);

  if RVData.GetItemStyle(ItemNo) = rvsHotPicture then
    ShowMessage('Picture ' + IntToStr(RVData.GetItemTag(ItemNo)));
end;
Now I want to get name constant of hot picture. because I have two kind of hot picture: Edit, Note.

I want to understand does user clicked at Edit HotPicture or Note HotPicture.

Is there a way to get name constant of hot picture? :roll:

Regards
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

RVData.GetItemTextA(ItemNo)
Tim

Simple anothor question!

Post by Tim »

Thanks for your answer. :D

I have anothor simple question: Why TransparentBackground of RVPrint dosen't work. hwo it is possible to print a document using RVPrint withour background image. I also try FormatPages([]) without any paramateres but it dosen't work, too. :idea:

Regards
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This property affects only the background color.
To remove a background bitmap from printing, call
RVPrint.rv.BackgroundBitmap := nil;
after calling RVPrint.AssignSource.
Post Reply