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
 How to bring layer infront of all layers?

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
aftereffectniko Posted - May 07 2013 : 10:39:34
How to bring layer infront of all layer and back of all layers? Help please?
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 07 2013 : 14:06:46
This uses the layers demo is samples.
procedure TForm1.MoveLayerToBack1Click(Sender: TObject);
{ Move current layer to back. }
begin
  if ImageEnView1.LayersCurrent > 1 then
  begin
    with ImageEnView1 do
      LayersMove(LayersCurrent, LayersCurrent - 1);
    RefreshControls;
    RefreshLayerViewer;
  end
  else
    MessageBox(0, PChar('Layer ' + IntToStr(ImageEnView1.LayersCurrent) + ' is the bottom most layer.'), 'Can Not Move Layer', MB_ICONWARNING or
      MB_OK or MB_TOPMOST);
end;

procedure TForm1.MoveLayerToFront1Click(Sender: TObject);
{ Move current layer to front. }
begin
  if ImageEnView1.LayersCurrent <> ImageEnView1.LayersCount - 1 then
  begin
    with ImageEnView1 do
      LayersMove(LayersCurrent, LayersCurrent + 1);
    RefreshControls;
    RefreshLayerViewer;
  end
  else
    MessageBox(0, PChar('Layer ' + IntToStr(ImageEnView1.LayersCurrent) + ' is the top most layer.'), 'Can Not Move Layer', MB_ICONWARNING or
      MB_OK or MB_TOPMOST);
end;

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