Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 求助多语言包!
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 求助多语言包!
aiker666
新警察
UID 41313
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-20
Status Offline
#1
Post at 2008-11-20 16:21
Profile
|
Blog
|
P.M.
求助多语言包!
我的程序是基于c++build5开发的,用贵网站的提供的多语言软件进行双语开发时,如果用到bcb自带的TTabbednotebook控件并使用多语言包进行翻译后,再次编译运行时就会报内存错误,TTabbednotebook界面上的所有控件(button,label)之类的件会全部丢失,请老大赐教一下!非常感激!
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2008-11-20 16:55
Profile
|
Blog
|
P.M.
可能是TTabbednotebook这个组件的页面属性字符串被翻译了导致内容丢失所致,类似于TNoteBook组件。多语包中针对TNoteBook组件的页面属性有处理因此没这个问题,但未考虑到BCB下面的TTabbednotebook.
您可以在生成的语言条目中,手工删掉TTabbedNotebook的Pages.Text那项代表页面的字符串即可(可能是这个属性名,现在没装BCB没法确认)。
aiker666
新警察
UID 41313
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-20
Status Offline
#3
Post at 2008-11-20 19:09
Profile
|
Blog
|
P.M.
谢谢老大,我先试下看看!
aiker666
新警察
UID 41313
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2008-11-20
Status Offline
#4
Post at 2008-11-21 17:35
Profile
|
Blog
|
P.M.
问题已解决!删除以后是不报错了!但好想这个控件不支持动态的来切换page的text的值,我在formcreate时编写代码想动态切换语言结果也是报错,请问老大,这是不是没有什么好的解决方法了?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2008-11-21 21:13
Profile
|
Blog
|
P.M.
这个控件Page的Text改变时会自动清除Page然后重建Page,因此不能改Text属性,但我猜想应该可以在切换语言时直接写Pages[1] := 'xxx';这样的代码,这样应该只会修改页名而不会引起页重建。
我这暂没BCB没法试,先试一试?
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 12:58
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008261 second(s), 7 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