Change all component's font in TForm
(Tip. After exception class check 'IF' using....)
(Tip. After exception class check 'IF' using....)
uses TypInfo;
var
i: Integer;
Prop: PPropInfo;
begin
for i := 0 to AForm.ComponentCount -1 do
begin
if AForm.Components[i] is "Exception Class" then
begin
{Exception Class Coding}
end
else begin
Prop := nil;
Prop := GetPropInfo(AForm.Components[i].ClassInfo, 'Font');
if Prop <> nil then
SetPropValue(GetObjectProp(AForm.Components[i], 'Font'), 'Name', AFontName);
end; // End of if AForm.Components...
end; // End of for
end;
'Delphi' 카테고리의 다른 글
| GetFileInfo (0) | 2018.09.06 |
|---|---|
| Guard : 메모리 자동해제... (0) | 2018.08.31 |
| POSTMESSAGE로 STRING전송 (0) | 2018.08.31 |
| 백업파일(~pas, ~dfm) 자동 생성 제한 (0) | 2015.11.19 |
| TWinControl을 동그란 모양으로 깍기 (0) | 2015.11.06 |


