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
 [IEvolution] Set selection grip style
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gcsoft

Italy
22 Posts

Posted - Aug 10 2012 :  07:21:28  Show Profile  Reply
can i define the grip style of a selection? Similar to SetLayersGripStyle method. I would like to replace with the box style, instead of the circle.

Thanks

Gregorio Carabino
software developer
http://www.gcsoft.it

w2m

USA
1990 Posts

Posted - Aug 10 2012 :  08:07:19  Show Profile  Reply

Use GetSelectionGripStyle and SetSelectionGripStyle
TImageEnView.GetSelectionGripStyle

Declaration

procedure GetSelectionGripStyle(var GripColor1:TColor; var GripColor2: TColor; var GripBrushStyle: TBrushStyle; var GripSize: integer; var ExtendedGrips: boolean; var Shape:TIEGripShape);

Description

GetSelectionGripStyle returns properties which determines the appearance of selection grips.

Parameter Description
GripColor1 grip border color (default clBlack)
GripColor2 grip brush color (default clWhite)
GripBrushStyle brush style (default bsSolid)
GripSize size in pixels of the grip (default 5)
ExtendedGrips if true enables grips on border with 8 resizing grips (deault false)
Shape specifies the grip shape

Use SetSelectionGripStyle to set current values.
Use TIEGripShape = iegsBox


var
iGripColor1: TColor;
iGripColor2: TColor;
iGripBrushStyle: TBrushStyle;
iGripSize: integer;
iExtendedGrips: boolean;
iGripShape: TIEGripShape;
...
// get the default styles
ImageEnView1.GetSelectionGripStyle(iGripColor1, iGripColor2, iGripBrushStyle, iGripSize, iExtendedGrips, iGripShape);
// change the TIEGripShape
ImageEnView1.SetSelectionGripStyle(iGripColor1, iGripColor2, iGripBrushStyle, iGripSize, iExtendedGrips, iegsBox);
...

Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html

William Miller
Go to Top of Page

gcsoft

Italy
22 Posts

Posted - Aug 10 2012 :  23:34:17  Show Profile  Reply
I have a .NET version; the methods 'GetSelectionGripStyle' and 'SetSelectionGripStyle' doesn't exist.



Gregorio Carabino
software developer
http://www.gcsoft.it
Go to Top of Page

xequte

38613 Posts

Posted - Aug 11 2012 :  03:26:59  Show Profile  Reply
Hi Gregorio

Please see IEViewer.ObjGripShape:

http://www.imageen.com/ievolutionhelp/html/bb76e695-ee8c-b796-f179-c4e813b48d7f.htm


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: