Lazarus 0.9.30 修剪菜单条目
我使用的是 Lazarus 0.9.30,在 IDE 和示例应用程序中,菜单条目均经过修剪:
alt text http://www.freeimagehosting.net/uploads/94832ba880.png
我可以在 IDE 中接受这个,但是对于应用程序我可以做些什么吗?在标题末尾添加空格仅在设计器中解决了问题,在运行时标题仍然被修剪。
操作系统:Windows 7 x86
Lazarus 版本尝试:
- Lazarus 0.9.30 + FPC 2.4.2
- Lazarus 0.9.31-29752 + FPC 2.4.2 (2011-03-09)
- Lazarus 0.9.31-29752 + FPC 2.4.3 (2011-) 03-09)
更新:
使用 Tahoma 8 作为系统菜单时,菜单标题会被修剪。将字体大小更改为 9 可以解决问题,但最好找到其他解决方法。
I'm using Lazarus 0.9.30 and in both the IDE and the sample applications the menu entries a trimmed:
alt text http://www.freeimagehosting.net/uploads/94832ba880.png
I can live with this in the IDE, but for the aplications is there something I can do? Adding spaces to the end of the caption has solved the problem only in designer, at runtime the caption is still trimmed.
OS: Windows 7 x86
Lazarus versions tried:
- Lazarus 0.9.30 + FPC 2.4.2
- Lazarus 0.9.31-29752 + FPC 2.4.2 (2011-03-09)
- Lazarus 0.9.31-29752 + FPC 2.4.3 (2011-03-09)
UPDATE:
The menu caption are trimmed when using Tahoma 8 for system menus. Changing the font size to 9 solves the problem, but it would be nice to find another workaround.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑器选项(常规选项卡)中有一个名为“修剪尾随空格”的检查。您可以尝试取消选中它,但我不确定这会影响 .lfm,并且您需要检查它是否会影响代码的其余部分。
您可以在此处找到有关 Lazarus 编辑器选项的更多信息。
说到这里,我会尝试从这里下载Lazarus 0.9.31版本。我安装了该版本,并且菜单修剪没有问题。
华泰
There is a check in the Editor options (General tab) called "Trim trailing spaces". You could try to uncheck it, though I am not sure this affects the .lfm, and you would need to check if it affects the rest of your code.
You can find more information about the Lazarus editor options here.
Said this, I would try to download the Lazarus 0.9.31 version from here. I have that version installed and have no problem with menu trimming.
HTH
当然,我是在设计器中设置标题,但运行时使用的实际值是在代码中定义的,因此在标题末尾添加空格是目前的解决方法。
Of course, I was setting the caption in the designer, but the actual value used at runtime was defined in code, so adding a space at the end of the caption is the workaround for the moment.