1
私の問題は以下のようなものなので、すべてチェックボックスをオンにすると、太字、イタリック、アンダーラインのすべてのチェックボックスが機能します。Delphiのチェックボックスの使用
私は、各チェックボックスのためにあなたが追加する必要があるので、フォントスタイルは、異なるTFontStyle
Sのセットです
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
if Checkbox1.Checked = True then
Label1.Font.Style := [fsBold] else
Label1.Font.Style := [];
end;
procedure TForm1.CheckBox2Click(Sender: TObject);
begin
if Checkbox2.Checked = True then
Label1.Font.Style := [fsItalic] else
Label1.Font.Style := [];
end;
procedure TForm1.CheckBox3Click(Sender: TObject);
begin
if Checkbox3.Checked = True then
Label1.Font.Style := [fsUnderline] else
Label1.Font.Style := [];
end;
end;
はそれを得ました。別の質問では、私はEnumerable型についてもう少し詳しく説明しました。たぶん何か便利です。 https://stackoverflow.com/questions/43943107/how-to-hide-multiple-tabs-in-ttabcontrol/43946736#43946736 –
大丈夫です、私はお試しください..答えてくれてありがとう – Razgris6146