⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkboxheader_mainform.pas

📁 source code for the Marco Cantu s book Delphi 2009 Handbook
💻 PAS
字号:
unit CheckBoxHeader_MainForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, StdCtrls;

type
  TFormCheckBoxHeader = class(TForm)
    HeaderControl1: THeaderControl;
    Memo1: TMemo;
    procedure HeaderControl1SectionCheck(HeaderControl: TCustomHeaderControl;
      Section: THeaderSection);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormCheckBoxHeader: TFormCheckBoxHeader;

implementation

{$R *.dfm}

uses
  StrUtils;

procedure TFormCheckBoxHeader.HeaderControl1SectionCheck(
  HeaderControl: TCustomHeaderControl; Section: THeaderSection);
begin
  Memo1.Lines.Add (Section.Text +
    IfThen (Section.Checked, ' checked', ' unchecked'));
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -