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
 TImageEnMView undo wrong.

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
wesleybobato Posted - Aug 16 2013 : 07:01:54
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.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 22 2013 : 17:19:51
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
wesleybobato Posted - Aug 16 2013 : 15:20:30
Nigel TImageEnMView this behavior is normal?
wesleybobato Posted - Aug 16 2013 : 07:56:17
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;
w2m Posted - Aug 16 2013 : 07:22:43
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