procedure TP_Ignore(AnObject:TObject; const name:string);
This procedure only affects the next execution of TranslateProperties()
or TranslateComponent(). The first parameter must be the same as the first
parameter in those other two procedures, and the name parameter specifies, which property you
don't want to be translated. Several syntaxes are allowed:
TP_Ignore (self,'ButtonOK.Caption'); // Ignores caption on ButtonOK
TP_Ignore (self,'MyDBGrid'); // Ignores all properties on component MyDBGrid
TP_Ignore (self,'.Caption'); // Ignores self's caption |
Since this procedure only has effect on the upcoming translation, it should always be
used just before TranslateProperties()
or TranslateComponent(). Example:
procedure TFormMain.FormCreate(Sender: TObject);
begin
TP_Ignore (self, 'Listbox1.Items');
TranslateComponent (self);
end; |
In this example, that shows an implementation in the form's FormCreate event handler,
all components on the form except the items in Listbox1 are translated.