Getting Name of HotPicture!

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

Getting Name of HotPicture!

Post by Tim » Mon Sep 05, 2005 2:44 pm

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: 14764
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Mon Sep 05, 2005 2:51 pm

RVData.GetItemTextA(ItemNo)

Tim

Simple anothor question!

Post by Tim » Wed Sep 07, 2005 6:19 am

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: 14764
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Wed Sep 07, 2005 9:14 am

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