






ne güzel, ne güzel yaşamak ne güzel..
Kod: Tümünü seç
procedure TMusonyaCYL.DoAppllyLanguage;
procedure AraBul(C : TComponent);
var i : integer;
PI : PPropInfo ;
S : String;
aFont : TFont;
begin
for i := 0 to C.ComponentCount - 1 do
begin
if C.Components[i].ComponentCount > 0 then AraBul(C.Components[i]);
try
if CDS.Locate('LangCode;ObjectName', VarArrayOf([UpperCase(LangPrefix), UpperCase(C.Components[i].Name)]), []) then
begin
S := WideStringToString(CDS['Text'], CDS['CodePage']);
if Pos('TTNT', UpperCase(C.Components[i].ClassType.ClassName)) = 1 then
begin
PI := GetPropInfo(C.Components[i].ClassInfo, 'Caption');
if Assigned(PI) then SetWideStrProp(C.Components[i], PI, CDS['Text']);
PI := GetPropInfo(C.Components[i].ClassInfo, 'BiDiMode');
if Assigned(PI) then SetOrdProp(C.Components[i], PI, CDS['BiDiMode']);
Continue;
end;
aFont := TFont(GetOrdProp(C.Components[i], 'Font'));
if assigned(aFont) then aFont.Charset := GetCharSet(CDS['CodePage']);
PI := GetPropInfo(C.Components[i].ClassInfo, 'Caption');
if Assigned(PI) then SetStrProp(C.Components[i], PI, S);
PI := GetPropInfo(C.Components[i].ClassInfo, 'BiDiMode');
if Assigned(PI) then SetOrdProp(C.Components[i], PI, CDS['BiDiMode']);
//if TControl(C.Components[i]).Visible then TControl(C.Components[i]).Repaint;
end;
except
end;
end;
end;
begin
.
.
.
if Assigned(Owner) And (Owner.HasParent) And (Owner.Owner is TForm) then
AraBul(Owner.Owner)
else
if Assigned(Owner) And (Owner is TComponent) then
AraBul(Owner);
.
.
.
end;
Kod: Tümünü seç
With TForm2.create(Application) do
begin
Parent := Form1;
Show;
end;
Kod: Tümünü seç
With TForm2.create(Form1) do Show;
Kod: Tümünü seç
With TForm2.create(Form1) do
begin
Parent := Form1;
Show;
end;