?? yearmonthselect.pas
字號:
unit YearMonthSelect;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BaseDialog, StdCtrls, ExtCtrls, Buttons;
type
TfYearMonthSelect = class(TfBaseDialog)
Bevel1: TBevel;
Label1: TLabel;
cobYear: TComboBox;
Label2: TLabel;
cobMonth: TComboBox;
Label3: TLabel;
procedure FormCreate(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
fYearMonthSelect: TfYearMonthSelect;
implementation
{$R *.dfm}
procedure TfYearMonthSelect.FormCreate(Sender: TObject);
var
I,J:Integer;
begin
inherited;
I:=strToInt(formatdateTime('yyyy',Date()));
I:=I-1;
For J:=I to I+10 do
cobYear.Items.Add(intTostr(J));
cobYear.ItemIndex :=1;
cobMonth.ItemIndex :=cobMonth.Items.IndexOf(formatdateTime('mm',date()));
end;
procedure TfYearMonthSelect.BitBtn1Click(Sender: TObject);
begin
if cobYear.ItemIndex<0 then begin
application.MessageBox('叫匡拒
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -