CnPack Forum


 
Subject: Use Unit / Insert Frame bug
surfer2k
新警察
Rank: 1



UID 1790
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2006-2-10
Status Offline
Post at 2007-5-22 13:56  Profile | Blog | P.M. 
Use Unit / Insert Frame bug

Hi all,
There is a problem with uses unit in french BDS2006 (and I supposed other version).

In function ShowProjectUseUnits(ASelf: TCustomForm): Boolean, the test :
       IsUseUnit := ASelf.Caption = 'Use Unit' always return False.
=> In the french version the caption is 'Utiliser l''unité'.

I temporary change test with:
    IsUseUnit := (ASelf.Caption = 'Use Unit') or (ASelf.Caption = 'Utiliser l''unité');
and all work fine.

I suppose there is the same problem with deutch or italian version.

The best was to use the caption from BDS menu ?

Thank's

Pascal
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-5-22 14:50  Profile | Blog | P.M. 
Oh, Sorry for the problem. We only concern the English situation in current CnWizards.
We'll find another way to check it.
Top
surfer2k
新警察
Rank: 1



UID 1790
Digest Posts 0
Credits 6
Posts 2
点点分 6
Reading Access 10
Registered 2006-2-10
Status Offline
Post at 2007-5-22 18:02  Profile | Blog | P.M. 
Ok, no problem for me I changed code but it's for other user as ALT-F11 always call Insert Frame instead of Use Unit.

Thank's for your fun wizard

Pascal
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2007-5-31 12:18  Profile | Blog | P.M. 
Now we changed the condition. Use Helpcontext to distinguish the two functions.
Could you download our latest nightly build 317 to test it in your environment?

http://www.cnpack.org/downbuilds.php
Top
 




All times are GMT++8, the time now is 2024-11-23 04:44

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007953 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP