Describes how to modify the font used for Radio Buttons.
To change the font used for a dialog that contains Radio Buttons, perform the following steps.
TRadioGroup
Under some circumstances, the Radio Buttons might be displayed using a TRadioGroup control. This occurs under the following conditions:
NOTE: If your application has Windows Themes enabled, you cannot change the font color for a radio button in some versions of Delphi.
Large deviations from the forms default font size are not recommended. This is because controls currently do not realign when the font has been changed.
procedure TForm1.DialogConstructed(Sender: TObject); var I: Integer; LForm: TCustomForm; begin LForm := TCustomForm(Sender); for I := 0 to LForm.ControlCount - 1 do begin if LForm.Controls[I] is TRadioButton then begin TRadioButton(LForm.Controls[I]).Font.Size := 11; TRadioButton(LForm.Controls[I]).Font.Color := clBlue; end; end; end;
Copyright © 2013 by LMD Innovative. All rights reserved.
|
What do you think about this topic? Send feedback!
|