trichview.com

trichview.support




Re: Is image selected?


Return to index


Author

Message

Yoerdes

Posted: 05/12/2003 22:00:33


Yoerdes wrote:

> 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


That doesn't solve it either, because StartOffs, EndOffs are mostly

1 when selecting the image after openeing the document. I have to

select and unselect the image several times to get the correct result.


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