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
 Is there a mouse-selection grip size?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BionicWave

Germany
33 Posts

Posted - Aug 08 2018 :  11:50:52  Show Profile  Reply
If i have several objects on an image and i click with my mouse in an empty spot on the image (a spot without objects underneath), i want to have nothing selected. And if there was something selected previously, everything should be deselected unless i click directly on an object.

How can i achieve that? I know it is easy, but for the sake of it i canīt find the parameter.


Thanks guys

xequte

38176 Posts

Posted - Aug 09 2018 :  03:11:55  Show Profile  Reply
Hi

Are you referring to TImageEnView Layers or TImageEnVect Objects?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

BionicWave

Germany
33 Posts

Posted - Aug 09 2018 :  05:40:32  Show Profile  Reply
I guess i could use a TImageEnVect but I would prefer to use the TImageEnView component if possible.
Go to Top of Page

BionicWave

Germany
33 Posts

Posted - Aug 09 2018 :  06:56:56  Show Profile  Reply
...and iīm using the objects.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 09 2018 :  14:36:58  Show Profile  Reply
TImageEnView does not support objects... only TImageEnVect supports objects. If you own version 8.0x of ImageEn then you can use the new layers class (TIELayer)as an "object layer".

TIELayers in verision 8.0x supports "if there was something selected previously, everything should be deselected unless I click directly on an object." but with layers the "object" can be an image, a line, a polyline, or a shape.

This new TIELayer class is much more functional with TImageEnView than the older TImageEnVect. I recommend you obtain the laatest version and then read about layers in the help file.


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

w2m

USA
1990 Posts

Posted - Aug 10 2018 :  12:46:52  Show Profile  Reply
If you use layers then you can set the size of the layers grips:
TImageEnView.SetLayersGripStyle

Declaration

procedure SetLayersGripStyle(GripColor1, GripColor2: TColor; GripBrushStyle: TBrushStyle; GripSize: Integer; Shape: TIEGripShape);

Description

SetLayersGripStyle determines the appearance of layers grips.

Parameter Description
GripColor1 grip border color
GripColor2 grip brush color
GripBrushStyle brush style
GripSize size in pixels of the grip
Shape specifies the grip shape

Example

ImageEnView1.SetLayersGripStyle(clWhite, clWhite, bsSolid, 5, iegsCircle);



With TImageEnVect you can set the objects grip size:

TImageEnVect.ObjGripSize

Declaration

property ObjGripSize: integer;

Description

Specifies the grip's size as shown when an object is selected.


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

w2m

USA
1990 Posts

Posted - Aug 10 2018 :  12:53:36  Show Profile  Reply
Also see TImageEnVect vs TIELayers topic in the on-line help file.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: