Author |
Topic |
|
gcsoft
Italy
22 Posts |
Posted - Aug 10 2012 : 07:21:28
|
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
|
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 |
|
|
gcsoft
Italy
22 Posts |
Posted - Aug 10 2012 : 23:34:17
|
I have a .NET version; the methods 'GetSelectionGripStyle' and 'SetSelectionGripStyle' doesn't exist.
Gregorio Carabino software developer http://www.gcsoft.it |
|
|
xequte
38613 Posts |
|
|
Topic |
|
|
|