Skip to content

Commit a4c1763

Browse files
committed
delphi: Reactivate dashboard control when a new layout is set
`TdxDashboardControl.Clear` makes the control inactive, so that it does not show any content (TdxDashboardControl.Active == False).
1 parent ab8cfda commit a4c1763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Delphi/uMainForm.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ procedure TMainForm.LoadLayoutAndState;
8282
dxDashboardControl1.Layout.Assign(DataModule1.mdLayoutsLayout);
8383
if not DataModule1.mdLayoutsState.IsNull then
8484
dxDashboardControl1.State.Assign(DataModule1.mdLayoutsState);
85+
86+
dxDashboardControl1.Active := True;
8587
end;
8688

8789
procedure TMainForm.btnDeleteClick(Sender: TObject);
@@ -131,6 +133,7 @@ procedure TMainForm.gvLayoutsFocusedRecordChanged(
131133
procedure TMainForm.dxDashboardControl1LayoutChanged(
132134
ASender: TdxCustomDashboardControl);
133135
begin
136+
dxDashboardControl1.Active := True;
134137
if DataModule1.mdLayoutsName.AsString <> dxDashboardControl1.DashboardName then
135138
begin
136139
DataModule1.mdLayouts.Append;

0 commit comments

Comments
 (0)