ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Object Deselect in TImageEnVect

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
stuartclennett@gmail.com Posted - Jan 18 2017 : 10:23:02
Hi,

I've implemented annotations pretty much as per the Vectorial Demo.

One problem though - when MouseInteractVT = miObjectSelect, it seems impossible to DEselect an object. No matter where on the image I click, at least one object is selected. This is also the case on the Vectorial Demo.

It's then impossible for the user to set the default pen & brush colors & styles (plus it seems very counter-intuitive)

Is there some property I'm missing to allow this?

Thanks
Stuart

Stuart Clennett
Delphi Berlin 10.1
2   L A T E S T    R E P L I E S    (Newest First)
stuartclennett@gmail.com Posted - Jan 19 2017 : 09:51:25
Perfect, thank you Bill. I knew it would be something simple I was missing. Cheers.

Stuart Clennett
Delphi Berlin 10.1
w2m Posted - Jan 18 2017 : 10:26:27
TImageEnVect.MaxSelectionDistance

Declaration
property MaxSelectionDistance: integer;

Description
MaxSelectionDistance indicates the maximum distance (in bitmap pixels) from which an object may be selected.
If the user left clicks at a location beyond this distance, no object will be selected.

A value of -1 (the default) disables the maximum selection distance calculation (a click always selects some object).

Example
ImageEnVect1.MaxSelectionDistance := -1; // disables maximum distance
ImageEnVect1.MaxSelectionDistance := 10; // set maximum distance to 10 bitmap pixels

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development