Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 985397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:09:27+00:00 2026-05-16T05:09:27+00:00

The well known Command pattern is used often when you want to implement a

  • 0

The well known Command pattern is used often when you want to implement a model with Undo/Redo capabilities. I am looking for a reference implementation (example) of a simple Delphi form that implements undo/redo.

From what I have seen, simple delphi data-entry forms with three Edit boxes, six memo boxes, and a few combo boxes and other simple edit controls, do not typically support Undo/Redo.

Has anyone seen a well designed delphi approach to multi-level undo/redo support for a complex model-view-controller design using a separate Delphi view (form), and model objects (data objects are updated synchronously with all edits to the form, and the validation and control logic is not embedded in the form, or in the model, but separated out.

It seems to me that if you didn’t have to use MVC, and you needed to simply prototype a Delphi demo app that had no model or controller objects, that Undo/Redo of a pure simple Delphi “one-form-is-my-app” would be simpler to design, but it would get more complicated as you need to record and replay objects and synchronize them to Delphi form actions like TEdit.OnChange.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:09:28+00:00Added an answer on May 16, 2026 at 5:09 am

    You should use followings patterns:

    • Model-GUI-Mediator
      — synch between objects model and GUI control, so you are no limited by TDataset and DB-Aware controls. You can create object-aware controls from EVERY VCL controls.
    • Command
      –your ACTIONS on the objects model. Should be fired by Controllers.
    • Memento
      –saving internal state of Data Objects for implementing the Undo/ReDo behavior

    ASAP I’will post a simple example on my blog http://www.danieleteti.it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following is a well known implementation of singleton pattern in C++. However, I'm
Its a well known best practice to use run executables using bundle exec <command>
i've been unsuccessfully attempting to create my own undo/redo classes that work well with
The Application.ProcessMessages command is well known and I use it in long processes to
Tomcat has got that well-known memory leak problem that causes PermGen space errors after
It's well-known, the script on http://ryanfait.com/sticky-footer/ : the sticky footer script! A sticky footer
It's a well known fact, that Oracle treats empty strings as null. However, I'm
Is there a well-known, portable, good library for C++ process management? I found a
It seems to be well-known there is a bug when using JMenuItem.getRootPane(). I read
Is there any well-known algorithm (or obvious solution) for transforming a list from order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.