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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Object Deselect in TImageEnVect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stuartclennett@gmail.com

United Kingdom
72 Posts

Posted - Jan 18 2017 :  10:23:02  Show Profile  Reply
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

w2m

USA
1990 Posts

Posted - Jan 18 2017 :  10:26:27  Show Profile  Reply
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
Go to Top of Page

stuartclennett@gmail.com

United Kingdom
72 Posts

Posted - Jan 19 2017 :  09:51:25  Show Profile  Reply
Perfect, thank you Bill. I knew it would be something simple I was missing. Cheers.

Stuart Clennett
Delphi Berlin 10.1
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: