设置 tMemo 顶部项目
请问如何让 tMemo 从顶部项目开始显示? 我还没有找到类似“TopItem”的东西,想知道是否必须这样做 通过某种方式发送消息(keydown control、keydown home、keyup home、keyup control) 但尽管阅读了大量的 Delphi 帮助,我还是没有弄清楚如何做到这一点。
How can I make a tMemo display starting at the top item please?
I have not found anything like a "TopItem", and wonder if it has to be done
by somehow sending messages (keydown control, keydown home, keyup home, keyup control)
but despite reading large tracts of the Delphi Help I haven't worked out how to do this either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只需根据您希望在线条中显示的内容选择任何字符即可。
Just select any character depending on what you want visible in Lines.
Steve88,感谢您的尝试,但没有成功。
从 Peter Below 的帖子中得到了一些想法,这使我想到了以下内容,这确实有效!
关于是否使用 MemoPopup.Perform 还是 PostMessage 有一些有趣的地方,我希望有人能够阐明它们的工作原理。
Steve88, thanks for trying, but that did not work.
Got some ideas from a post from Peter Below, which led me to the following, which actually works!
There are some funnies as to whether to use MemoPopup.Perform or PostMessage, and I hope someone can shed light on the workings of these.
是不是只是:
当然,在您将 Tmemo 的内容填满之后添加此代码......
(这对我有用)
Isn't it just:
Add this code of course after you have filled your Tmemo with its contents ...
(This works for me)