Page 1 of 1

Error when trying to Exclude property in Translation Editor

Posted: Thu Apr 24, 2003 9:00 am
by emin
5.2.2 CLX Delphi 7

In translation editor right click any translation and exclude it.
Then try to exclude additional translations.
Exception: Cannot focus a disabled or invisible window (Unnamed).

Also tested on Kylix3, there is no problem.

Emin

Posted: Thu Apr 24, 2003 10:14 am
by gaivans
Hello,

Thank you. We will fix this issue in the next release. If you need the fix promptly, please modify the unit "siTransEditor.pas" as follows:

1) In the
constructor TExclActionForm.Create(AOwner: TComponent);
instead the line:
ItemIndex := 0;
write this line:
Items.Text := #13#10#13#10#13#10; // 5.2.3
2) In the
function TExclActionForm.Dialog(const CompName, PropName: string;
Index: integer): TExclActionResult;
replace the block:
with rgpAction.Items do begin ... end
with this one:
// 5.2.3
with rgpAction do
begin
Items[0] := Format('Exclude "%s" property for %s', [PropName, CompName]);
Items[1] := Format('Do not translate all properties of %s', [CompName]);
Items[2] := Format('Exclude "%s" property for all Components', [PropName]);
end;

After that rebuild the package.

Posted: Thu Apr 24, 2003 11:01 am
by emin
Thank you
applied the fix, and it is fine now.
Emin