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
 TImageEnMView undo wrong.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Aug 16 2013 :  07:01:54  Show Profile  Reply
Hello Nigel could help me again?

Then I realized that TImageEnMView not processing the undo correctly.

I added a video for better understanding.

https://www.dropbox.com/s/nx6opwap9elzlhh/VID_20130816_105506.3gp

Thank You.

w2m

USA
1990 Posts

Posted - Aug 16 2013 :  07:22:43  Show Profile  Reply
We need more than a video to try to figure out what you are doing. Please show your undo code.

Are you using UndoAt or undo?

William Miller
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Aug 16 2013 :  07:56:17  Show Profile  Reply
William Hello Good Morning.

So the code is below.


//LOAD
procedure TForm6.Button1Click(Sender: TObject);
begin
ImageEnMView1.ImageFileName[ImageEnMView1.AppendImage] := 'G:\Documents and Settings\Admin\Desktop\Naipi\DSC_0119.JPG';
ImageEnMView1.ImageFileName[ImageEnMView1.AppendImage] := 'G:\Documents and Settings\Admin\Desktop\video email\_DSC4356.JPG';
end;


// UNDO
procedure TForm6.Button2Click(Sender: TObject);
begin
if ImageEnMView1.Proc.UndoCount > 0 then
begin
ImageEnMView1.Proc.SaveRedo;
ImageEnMView1.Proc.Undo;
ImageEnMView1.Proc.ClearUndo;
end;
end;

// REDO
procedure TForm6.Button3Click(Sender: TObject);
begin
if ImageEnMView1.Proc.RedoCount > 0 then
begin
ImageEnMView1.Proc.SaveUndo;
ImageEnMView1.Proc.Redo;
ImageEnMView1.Proc.ClearRedo;
end;
end;


//NEGATIVE
procedure TForm6.Button4Click(Sender: TObject);
begin
ImageEnMView1.Proc.Negative;
ImageEnMView1.Proc.ClearAllRedo;
end;


// CLEAR
procedure TForm6.Button5Click(Sender: TObject);
begin
ImageListBox1.Clear;
ImageEnMView1.Clear;
ImageEnMView1.Proc.ClearAllUndo;
ImageEnMView1.Proc.ClearAllRedo;

end;

//UNDOLIMIT
procedure TForm6.FormCreate(Sender: TObject);
begin
ImageEnMView1.Proc.UndoLimit := 5;
end;
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Aug 16 2013 :  15:20:30  Show Profile  Reply
Nigel TImageEnMView this behavior is normal?
Go to Top of Page

xequte

39064 Posts

Posted - Aug 22 2013 :  17:19:51  Show Profile  Reply
Hi Wesley

The Undo/Redo functionality was not originally designed to support TImageEnMView because its Proc property only accesses the selected item.

However for the next release I will allow it to support TImageEnMView too.


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: