Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» CnAAText组件问题,希望高手进来帮我解决下。谢谢!
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: CnAAText组件问题,希望高手进来帮我解决下。谢谢!
Nashine
新警察
UID 42094
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2009-3-30
Status Offline
#1
Post at 2009-3-30 00:11
Profile
|
Blog
|
P.M.
CnAAText组件问题,希望高手进来帮我解决下。谢谢!
大家请看下图
上面背景我使用了Image组件,上层为cnAAtext组件
下面我使用的是JvRichEdit组件
我的意思就是 JvRichEdit的文字可以在cnAAtext中显示,这个我是写传奇脚本用的。因为脚本中有些格式需要转换。
但是呢大家帮我看看问题
这是我的测试代码。
procedure TForm1.JvRichEdit1Change(Sender: TObject);
begin
CnAAText1.Text.Lines:= JvRichEdit1.Lines;
end;
Image Attachment
:
QQ截图未命名.bmp
(2009-3-30 00:11, 413.51 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2009-3-30 10:27
Profile
|
Blog
|
P.M.
请问Delphi是什么版本?
可能是AnsiString与WideString的转换问题。
Nashine
新警察
UID 42094
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2009-3-30
Status Offline
#3
Post at 2009-3-30 14:13
Profile
|
Blog
|
P.M.
我的是D7,如果确实是您说的那个问题,那我应该怎么解决撒?谢谢指教。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2009-3-30 14:30
Profile
|
Blog
|
P.M.
没装Jcl,不知JvRichEdit的Lines是啥类型的属性,如果也是TStrings,照理不该这样。
普通的RichEdit是否也有这个问题?
Nashine
新警察
UID 42094
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2009-3-30
Status Offline
#5
Post at 2009-3-30 14:35
Profile
|
Blog
|
P.M.
是JVRichEdit的原因,我用SuiMemo输入时正常。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2009-3-30 14:37
Profile
|
Blog
|
P.M.
可能JvRichEdit的Lines这个StringList中存入的是WideString。
你可以这样试一试:
CnAAText1.Text.Lines.Text := string(JvRichEdit1.Lines.Text); // 如果它的Lines有Text属性的话
Nashine
新警察
UID 42094
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2009-3-30
Status Offline
#7
Post at 2009-3-30 14:47
Profile
|
Blog
|
P.M.
依旧有问题,可能真是JV存的是宽字符,但是JV代码里面我不知道怎么修改.
请高手帮我看下。PAS在附件中。
Attachment
:
JvRichEdit.rar
(2009-3-30 14:47, 42.16 K)
Download count 466
Nashine
新警察
UID 42094
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2009-3-30
Status Offline
#8
Post at 2009-3-30 14:58
Profile
|
Blog
|
P.M.
唉,讨论的太复杂。
老大你有时间看看。
http://www.delphibbs.com/delphibbs/dispq.asp?lid=2111942
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-11-22 07:07
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.010417 second(s), 8 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