撤消&重做按钮 [英] Undo & Redo Button

查看:77
本文介绍了撤消&重做按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有16个按钮的程序,当点击一个按钮时它会自动禁用但我需要一个撤销和重做按钮来恢复最后一个按钮单击

解决方案

< blockquote>我有一个带有16个按钮的程序,当点击一个按钮时它会自动禁用但我需要一个撤消和重做按钮来恢复最后一个按钮点击

撤消和重做归结为维护对象状态的历史。


这可能非常简单或非常复杂,但这一切都可以归结为。


i have a program with 16 buttons and when one is clicked it disables itself but i need an undo and redo buttons to revert the last button click

解决方案

i have a program with 16 buttons and when one is clicked it disables itself but i need an undo and redo buttons to revert the last button click

Undo and redo comes down to maintaining a history of the state of the objects.

It can be pretty simple or really complex, but it all boils down to that.


这篇关于撤消&amp;重做按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆