trichview.com

trichview.support




Re: Is image selected?


Return to index


Author

Message

Yoerdes

Posted: 05/12/2003 21:37:25


Hi Sergey,


I've tried GetSelectedImage in a TRichEdit with just one image in it.


The image is selected but Line 3499 in unit CRVFData causes the result

to be nil. The values for StartNo, EndNo, StartOffs, EndOffs are all 0.


Should the line not be

if (StartOffs>0) or (EndOffs<0) then exit;  ?


Yoerdes



Sergey Tkachenko wrote:

> Use rve.GetSelectedImage.

>

> (or you can analyze values returned by

> rve.TopLevelEditor.GetSelectionBounds)

>

>

>

>>Hi,

>>

>>how can I definitely determine if an image is selected (surrounded by

>>handles)?

>>

>>Using GetCurrentItemEx(TRVGraphicItemInfo, EditorVariable, ItemVariable)

>>gives me a positive result even it the carret is behind the image.

>>

>>Thanks

>>Yoerdes






Powered by ABC Amber Outlook Express Converter