表格强制显示过滤按钮
This commit is contained in:
parent
b8e43f895f
commit
def92b203f
|
@ -194,7 +194,6 @@ begin
|
|||
setGridButton.Parent := TToolBar(mForm.Components[i]);
|
||||
setGridButton.ImageIndex := 16; //)
|
||||
setGridButton.Caption:='表格列设置';
|
||||
// setGridButton.Name:='TgridLiSet';
|
||||
setGridButton.Style := tbsButton;
|
||||
setGridButton.AutoSize:=true;
|
||||
|
||||
|
@ -377,8 +376,10 @@ begin
|
|||
// 窗口背景色
|
||||
|
||||
try
|
||||
for i := 0 to mForm.ControlCount - 1 do
|
||||
for i := 0 to mForm.ComponentCount - 1 do
|
||||
begin
|
||||
if not ( mForm.Components[i] is TcxGrid) and not( mForm.Components[i] is TToolBar) and not( mForm.Components[i] is TdxCustomLayoutControl) then Continue;
|
||||
|
||||
if mForm.Components[i] is TcxGrid then
|
||||
begin
|
||||
if mForm.Components[i].Tag>=999 then Continue;
|
||||
|
@ -386,6 +387,7 @@ begin
|
|||
|
||||
//自动响应过滤
|
||||
TcxGridDBTableView(TcxGrid(mForm.Components[i]).Views[0]).dataController.filter.AutoDataSetFilter := true;
|
||||
TcxGridDBTableView(TcxGrid(mForm.Components[i]).Views[0]).optionsCustomize.columnfiltering := true;
|
||||
TcxGridDBTableView(TcxGrid(mForm.Components[i]).Views[0]).OnSelectionChanged := cxGridViewSelectionChanged;
|
||||
TcxGridDBTableView(TcxGrid(mForm.Components[i]).Views[0]).OnCustomDrawIndicatorCell := cxGridViewCustomDrawIndicatorCell;
|
||||
TcxGridDBTableView(TcxGrid(mForm.Components[i]).Views[0]).optionsCustomize.columnfiltering := true;
|
||||
|
@ -433,7 +435,17 @@ begin
|
|||
SetFormOperRight(application,TToolBar(mForm.Components[i]), PWideChar(mRightCaptions));
|
||||
continue;
|
||||
end;
|
||||
|
||||
if mForm.Components[i] is TdxCustomLayoutControl then
|
||||
begin
|
||||
if mForm.Components[i].Tag<999 then
|
||||
TdxLayoutControl(mForm.Components[i]).ParentFont:=true;
|
||||
if mForm.Components[i].Tag<>1000 then
|
||||
begin
|
||||
TdxLayoutControl(mForm.Components[i]).OnDblClick := dxLayoutControl1DblClick ;
|
||||
readLayOut(TdxLayoutControl(mForm.Components[i]),ADOTmp,PWideChar( fDllFileName+'|'+mForm.name+'|'+TdxLayoutControl(mForm.Components[i]).Name+'.ini'));
|
||||
end;
|
||||
continue;
|
||||
end;
|
||||
end;
|
||||
except
|
||||
showMessage('窗口初始化异常!');
|
||||
|
|
Loading…
Reference in New Issue
Block a user