trichview.com

trichview.support




Re: Recognize images with the mouse


Return to index


Author

Message

Pieter E.

Posted: 09/10/2004 13:23:55


Dear Sergey,


Thank you for your support. It works great. The only thing which doesn't

work is when an images is nested into a table. It recognizes the table but

not the selected image. Do you have a solution for this problem?


Thank you again.


Pieter E.


"Sergey Tkachenko" <svt@trichview.com> wrote:

>Check LRVData->GetItemStyle(LItemNo)

>

>If the return value >=0, this is a text item (return value is an index in

>RVStyle.TextStyles)

>It's picture if the return value is rvsPicture or rvsHotPicture.

>Search for "rvsPicture" in the help index for more information (it should

>open "rvsXXX global constants" topic)

>

>

>>

>> I've created the following code with the helpfile:

>>

>> TCustomRVFormattedData *LRVData;

>> int LItemNo, LOffs;

>> Types::TPoint pt;

>>

>> pt = rve->ClientToDocument(pt);

>> rve->GetItemAt(pt.x, pt.y, LRVData, LItemNo, LOffs, True);

>> if(ItemNo<0) return;

>>

>> Question:

>>

>> How do I know if the selected item is image, table, or other type...

>

>





Powered by ABC Amber Outlook Express Converter