Re: Stretching the envelope
Posted: Wed Jul 25, 2007 1:14 pm
Hi Nick,
It looks like an error in ElPack ElWideStrings.CommaText property realization.
If you try the code:
(Garbage are the Russian characters from your SIB file)
You will notice that text will be displayed incorrectly in memo.
nickg wrote: It stops the access error, but there is still a problem with the multi-line property ControlTexts used to store dialog button captions. It seems to be accessing the wrong item in the array, with the text for OK being displayed on the Yes button, when Yes and No are selected, and the No button is left blank. When the OK button is the only one set to show, it comes up blank too.
It looks like the index is 2 too high and part of the array is being left with empty strings.
It looks like an error in ElPack ElWideStrings.CommaText property realization.
If you try the code:
Code: Select all
ElMemo1.Lines.CommaText := WideString('Äà,Íåò,Î''ÊÅÉÎ,Îòìåíà,"Ïðåêðàùåíè ïðåêðàùåíèå","Ïîâòîðåííàÿ ïîïûòêà",Ïðîèãíîðèðóéòå,Âñå,"Íå ê âñåì","Äà ê âñåì",Ïîìîùü,"Ïîêàæèòå ñëåäóþùåå âðåìÿ","%d âðåìåííî îòêîìàíäèðîâûâàåò íàëåâî"');
You will notice that text will be displayed incorrectly in memo.
There is no removing of & char envolved at all.I noticed when stepping through the code, that when the code removes the & signs it seems to remove some of the text as well, for instance N&o to All, removes the N as well as the &, leaving the text as o to all.
Data module named in project as DM but in SIB file it is named as TDataModule1.Also the dialog on the data module isn't causing an error, but it isn't being translated at all.