trichview.com

trichview.support




Grab the image only when it shows a border...


Return to index


Author

Message

Pieter E.

Posted: 10/19/2004 10:50:07


When an image is selected, a border shows.


I get the picture with the following code:

if(rve->CurItemStyle == rvsPicture)

        {

          AnsiString s;

          int iTag;

          TGraphic *grPicture;

          TRVVAlign VAlign;

          rve->GetCurrentPictureInfo(s, grPicture, VAlign, iTag);

          tmpImage->Picture->Graphic = grPicture;

        }


Everything works correct. The image shows in the tmpimage. But when I deselect

the Image by clicking next to the image, I can still grab the image.


I only want that the image can be grabbed when the image shows the border.


Can you give me a hint?

(Is GetSelectionBounds the solution?)


Thanks.


Pieter E.





Powered by ABC Amber Outlook Express Converter