//
procedure TSecSetting
begin
action:=cafree;
end;
//
procedure TSecSetting
Field: TField);
begin
//顯示數據數量
label
//設置數據表寬度
dbgrid
dbgrid
end;
//
procedure TSecSetting
begin
if isEnable=true then
begin
//將首記錄等記錄移動按鈕設置為不可用
toolbutton
toolbutton
toolbutton
toolbutton
//將新增
toolbutton
toolbutton
toolbutton
//將保存和取消按鈕設置為可用
toolbutton
toolbutton
//將窗體內的數據顯示控件設為可讀
dbedit
dbedit
dbedit
dbradiogroup
dbradiogroup
end;
if isEnable=false then
begin
//將首記錄等記錄移動按鈕設置為可用
toolbutton
toolbutton
toolbutton
toolbutton
//將新增修改等按鈕設置為可用
toolbutton
toolbutton
toolbutton
//將保存和取消按鈕設置為不可用
toolbutton
toolbutton
//將窗體內的數據顯示控件設為只讀
dbedit
dbedit
dbedit
dbradiogroup
dbradiogroup
end;
end;
//
procedure TSecSetting
begin
SetToolBar(true);
datasource
end;
//
procedure TSecSetting
begin
SetToolBar(true);
datasource
end;
//
procedure TSecSetting
begin
if application
datasource
end;
[
From:http://tw.wingwit.com/Article/program/Delphi/201311/25009.html