...check, if Undo is possible in a TMemo?

Author: Vertex
Homepage: http://buerger.metropolis.de/vertex

Category: VCL

procedure TForm1.Button1Click(Sender: TObject);
begin
  if 
Memo1.Perform(EM_CANUNDO, 0, 0) <> 0 then
    
ShowMessage('Undo is possible')
  else
    
ShowMessage('Undo is not possible');
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base