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
 Color

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
M.Schlegel Posted - Aug 05 2018 : 10:14:05
Hello Team Imageen,
i use delphi 7 with imageen 8.01.
on a form i have a ImageEnDBVect1. How can i change the seltion Color in green?

Thanks for help
Matthias Schlegel

3   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Aug 06 2018 : 13:42:35
Add iexLayer to uses. Also to set selection (rubber banding) use SelColor1 and SelColor2 set the two colors of the animated selection polygon.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
M.Schlegel Posted - Aug 06 2018 : 03:51:37
Hello Bill,
thank's for the answer.
My code is now:

procedure TView_Bilder.ImageEnDBVect1DrawLayerBox(Sender: TObject;
  ACanvas: TCanvas; LayerIndex: Integer);
begin
  with ACanvas do
  begin
    Pen.Style := psSolid;
    Pen.Width := 2;
    Pen.mode := pmCopy;
    Pen.Color := clGreen;
    Brush.Style := bsClear;
    with TIELayer(ImageEnDBVect1.Layers[LayerIndex]).ClientAreaBox do
      Rectangle(Left-1, Top-1, Right+1, Bottom+1);
  end;
end;


there is a error message: Undefinierter Bezeichner: 'TIELayer'

Thank's for help
Matthias Schlegel
w2m Posted - Aug 05 2018 : 11:37:30
e way is to use the ImageEnViewDrawLayerBox event
procedure TForm1.ImageEnViewDrawLayerBox(Sender: TObject; ACanvas: TCanvas;
  LayerIndex: Integer);
begin
  with ACanvas do
  begin
    Pen.Style := psSolid;
    Pen.Width := 2;
    Pen.mode := pmCopy;
    Pen.Color := clGreen;
    Brush.Style := bsClear;
    with TIELayer(ImageEnView.Layers[LayerIndex]).ClientAreaBox do
      Rectangle(Left-1, Top-1, Right+1, Bottom+1);
  end;
end;

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