如何在smalltalk中重绘列表

发布于 2024-09-07 08:05:19 字数 142 浏览 8 评论 0原文

我的 Smalltalk 应用程序中有一个列表,该列表由用户事件更新。该列表正确更新,但它只会在窗口强制重绘时重绘、重绘或刷新。因此,它会按预期显示,但仅当我隐藏然后重新显示窗口,或者将其拖出屏幕然后重新打开时。

如何使应用程序窗口在列表更新时自动重绘?

I have a List in my smalltalk application that gets updated by user events. The list updates correctly, but it only redraws, repaints, or refreshes whenever the window is forced to redraw. So it'll appear as it is supposed to, but only when I hide and then reshow the window, or drag it off screen and then bring it back on.

How do I make the App window automatically redraw, whenever the list is updated?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2024-09-14 08:05:19

我通过包括以下内容来实现此目的:

self changed: #objectInList

在正在更改的对象的方法中。

I got this working by including:

self changed: #objectInList

In the method of the objects being changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文