function SetGB23ToBIG5(frmForm: TForm): Boolean;
function GB_or_BIG5(sValue: string;
lGB: Integer): string;
begin
if lGB = 1 then
Result := GBtoBIG5(sValue)
else
Result := BIG5toGB(sValue);
end;
var
i, j: Integer;
begin
if lGB23_BIG5 = 1 then
with frmFormdo
begin
for i := 0 to ComponentCount - 1do
begin
if (Components is TSeSkinLabel) then
TSeSkinLabel(Components).Caption :=
GB_or_BIG5(TSeSkinLabel(Components).Caption, lGB23_BIG5)
else
if (Components is TSeSkinButton) then
TSeSkinButton(Components).Caption :=
GB_or_BIG5(TSeSkinButton(Components).Caption, lGB23_BIG5)
else
if (Components is TSeSkinCheckBox) then
TSeSkinCheckBox(Components).Caption :=
GB_or_BIG5(TSeSkinCheckBox(Components).Caption, lGB23_BIG5)
else
if (Components is TSeSkinGroupBox) then
TSeSkinGroupBox(Components).Caption :=
GB_or_BIG5(TSeSkinGroupBox(Components).Caption, lGB23_BIG5)
else
if (Components is TSeSkinRadioButton) then
TSeSkinRadioButton(Components).Caption :=
GB_or_BIG5(TSeSkinRadioButton(Components).Caption, lGB23_BIG5)
else
if (Components is TSeSkinPanel) then
TSeSkinPanel(Components).Caption :=
GB_or_BIG5(TSeSkinPanel(Components).Caption, lGB23_BIG5)
else
if (Components is TdxBarSubItem) then
TdxBarSubItem(Components).Caption :=
GB_or_BIG5(TdxBarSubItem(Components).Caption, lGB23_BIG5)
else
if (Components is TdxBarButton) then
TdxBarButton(Components).Caption :=
GB_or_BIG5(TdxBarButton(Components).Caption, lGB23_BIG5)
else
if (Components is TTabSheet) then
TTabSheet(Components).Caption :=
GB_or_BIG5(TTabSheet(Components).Caption, lGB23_BIG5)
else
if (Components is TSeCustomTabSheet) then
TSeCustomTabSheet(Components).Caption :=
GB_or_BIG5(TSeCustomTabSheet(Components).Caption, lGB23_BIG5)
else
if (Components is TdxTreeList) or (Components is
TdxDBTreeList) or (Components is TdxDBGrid) then
begin
for j := 0 to TdxTreeList(Components).Bands.Count - 1do
TdxTreeList(Components).Bands.Items[j].Caption :=
GB_or_BIG5(TdxTreeList(Components).Bands.Items[j].Caption,
lGB23_BIG5);
for j := 0 to TdxTreeList(Components).ColumnCount - 1do
TdxTreeList(Components).Columns[j].Caption :=
GB_or_BIG5(TdxTreeList(Components).Columns[j].Caption,
lGB23_BIG5);
end;
end;
end;
Result := True;
end;
==========================================================