Use Unit / Insert Frame bug
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 ?
Oh, Sorry for the problem. We only concern the English situation in current CnWizards.
We'll find another way to check it.
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
Powered by Discuz! Archiver 5.0.0
© 2001-2006 Comsenz Inc.
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?