RichTextBox:切换HideSelection或WordWrap清除撤消吗? [英] RichTextBox: Toggling HideSelection or WordWrap Clears Undo?

查看:88
本文介绍了RichTextBox:切换HideSelection或WordWrap清除撤消吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用WinXP和Visual Studio 2008 ...
当我更改RichTextBox中的HideSelectionWordWrap属性时,撤消缓冲区被清除(CanUndo变为False).我不确定这是正常现象还是我自己系统中的错误,因为当我打开或关闭WordWrap时,MS Notepad和Fookes NoteTab也会表现出这种现象.

要么我一直都没有注意,要么XP已经开发了一个bug.

Using WinXP and Visual Studio 2008...
When I change the HideSelection or WordWrap properties in a RichTextBox, the Undo buffer is cleared (CanUndo becomes False). I was unsure if this was normal behavior or a bug in my own system, since MS Notepad and Fookes NoteTab also exhibit this behavior when I toggle WordWrap on or off.

Either I''ve not been paying attention all this time, or XP has developed a bug.

推荐答案

我对其进行了测试,请在我的旧Windows应用程序中进行观察,但在WordWrap更改后保留撤消的WPF上不适用.我在XP上测试过.因此,很难说出问题出在哪里,但这是一种错误:撤消不应该只依赖于与视图相关的属性.

—SA
I tested it, observe it on my old native-windows application, but not on WPF where the undo is preserved after changing of WordWrap. I tested it on XP. So, hard to say where the problem is, but this is a kind of bug: Undo should not depends on properties related only to view.

—SA


这篇关于RichTextBox:切换HideSelection或WordWrap清除撤消吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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