Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 修改d2010的Messages的字体类型及大小?
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 修改d2010的Messages的字体类型及大小?
edwinyeah
灌水司司长
UID 40580
Digest Posts 0
Credits 343
Posts 129
点点分 343
Reading Access 10
Registered 2008-6-18
Status Offline
#1
Post at 2011-10-30 21:15
Profile
|
Blog
|
P.M.
修改d2010的Messages的字体类型及大小?
大家好!
有没有人知道,如何修改d2010的Messages的字体类型及大小?我的系统DPIS 140%, 在我的22'屏幕里面,那些字体太小啦,而有一部分被遮住看不到,痛苦啊!
先谢过啦!
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2011-10-31 11:38
Profile
|
Blog
|
P.M.
如果是MessageDlg函数,可查其源码改改。
或者复制出来自己改改封装成一个新的同名函数使用。
edwinyeah
灌水司司长
UID 40580
Digest Posts 0
Credits 343
Posts 129
点点分 343
Reading Access 10
Registered 2008-6-18
Status Offline
#3
Post at 2011-10-31 17:36
Profile
|
Blog
|
P.M.
不是MessageDlg. 而是说 View 菜单下面的 Messages, 也就是IDE底部DELPHI用来显示如编译错误等信息的地方。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2011-10-31 18:04
Profile
|
Blog
|
P.M.
可以尝试一下脚本专家,我们例子中的MessageView.pas,改一改,把最后Tree的Font的Size改改试试看?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2011-10-31 18:06
Profile
|
Blog
|
P.M.
把MessageView.pas最后一段改成:
if Tree <> nil then
Tree.Font.Size := 24;
经验证在D5下有效。
edwinyeah
灌水司司长
UID 40580
Digest Posts 0
Credits 343
Posts 129
点点分 343
Reading Access 10
Registered 2008-6-18
Status Offline
#6
Post at 2011-10-31 20:21
Profile
|
Blog
|
P.M.
在d2010下不行,因为那个窗口的ClassName不是TTreeMessageView, 而是以TBetter...开头的, 似乎是 继承自VirtualTreeView的。。。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
#7
Post at 2011-10-31 20:49
Profile
|
Blog
|
P.M.
可以试一试:
找到那个类名的实例再转成TControl再设Font。
或试一试改Form的字体。
edwinyeah
灌水司司长
UID 40580
Digest Posts 0
Credits 343
Posts 129
点点分 343
Reading Access 10
Registered 2008-6-18
Status Offline
#8
Post at 2011-10-31 23:52
Profile
|
Blog
|
P.M.
谢谢你的帮助 :)
尝试设置 CnMessageViewWrapper.MessageViewForm.Font ,但是提示脚本编译出错。。。
类似的,但是更严重的问题是,编辑器上方的tabs字体也是很小, 我的眼睛很痛啊!麻烦在给点提示吧
那个tabs的 ClassName 是 TIDEGradientTabSet。
不知道脚本能不能访问D2010的新功能RTTI(运行时类型信息)?如果能,我们可以通过RTTI访问那些控件的Font属性吗?
再次拜谢!
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-10-12 17:11
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008476 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats