Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

如何防止editor中出现遮行的现象

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Symbian

文章
huwell 在 04 Jul 2007 创建
最后由 hamishwillee 在 08 May 2013 编辑
  • 设备, 软件 版本:

S60 3rd Edition


  • 详细描述

如果editor的高度不能满足多行文本显示的高度,那最下面一行可能只能显示部分内容,出现遮行的现象。根据实际内容动态的计算editor高度并不一定可行。

例如,插入图片或改变字体大小时,可能上述方法就无效了。这时我们可以通过调用RestrictScrollToTopsOfLines()来解决这个问题(加入EFalse参数):

iEditor->TextLayout()->RestrictScrollToTopsOfLines( EFalse );


注意: 使用RestrictScrollToTopsOfLines()时要小心,在某些情况下鼠标可能会出现在屏幕外。

This page was last modified on 8 May 2013, at 00:02.
60 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×