mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Emphasize label of checked "Drop" checkboxes, so the user is warned. Fixes issue #1493.
This commit is contained in:
@ -158,6 +158,7 @@ var
|
|||||||
SessionNames: TStringList;
|
SessionNames: TStringList;
|
||||||
begin
|
begin
|
||||||
// Restore GUI setup
|
// Restore GUI setup
|
||||||
|
InheritFont(Font);
|
||||||
Width := GetRegValue(REGNAME_TOOLSWINWIDTH, Width);
|
Width := GetRegValue(REGNAME_TOOLSWINWIDTH, Width);
|
||||||
Height := GetRegValue(REGNAME_TOOLSWINHEIGHT, Height);
|
Height := GetRegValue(REGNAME_TOOLSWINHEIGHT, Height);
|
||||||
TreeObjects.Width := GetRegValue(REGNAME_TOOLSTREEWIDTH, TreeObjects.Width);
|
TreeObjects.Width := GetRegValue(REGNAME_TOOLSTREEWIDTH, TreeObjects.Width);
|
||||||
@ -195,7 +196,6 @@ begin
|
|||||||
// Various
|
// Various
|
||||||
udSkipLargeTables.Position := GetRegValue(REGNAME_TOOLSSKIPMB, udSkipLargeTables.Position);
|
udSkipLargeTables.Position := GetRegValue(REGNAME_TOOLSSKIPMB, udSkipLargeTables.Position);
|
||||||
SetWindowSizeGrip( Self.Handle, True );
|
SetWindowSizeGrip( Self.Handle, True );
|
||||||
InheritFont(Font);
|
|
||||||
FixVT(TreeObjects);
|
FixVT(TreeObjects);
|
||||||
FixVT(ResultGrid);
|
FixVT(ResultGrid);
|
||||||
FResults := TObjectList.Create;
|
FResults := TObjectList.Create;
|
||||||
@ -821,6 +821,17 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
procedure TfrmTableTools.chkExportOptionClick(Sender: TObject);
|
procedure TfrmTableTools.chkExportOptionClick(Sender: TObject);
|
||||||
|
procedure WarnIfChecked(chk: TCheckBox; LabelText: String);
|
||||||
|
begin
|
||||||
|
chk.ParentFont := chk.Checked;
|
||||||
|
if chk.Checked then begin
|
||||||
|
chk.Caption := LabelText + '!!';
|
||||||
|
chk.Font.Style := chk.Font.Style + [fsBold];
|
||||||
|
end else begin
|
||||||
|
chk.Caption := LabelText;
|
||||||
|
chk.Font.Style := Font.Style;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
begin
|
begin
|
||||||
if (Sender = chkExportDatabasesDrop) and chkExportDatabasesDrop.Checked then
|
if (Sender = chkExportDatabasesDrop) and chkExportDatabasesDrop.Checked then
|
||||||
chkExportDatabasesCreate.Checked := True
|
chkExportDatabasesCreate.Checked := True
|
||||||
@ -830,6 +841,8 @@ begin
|
|||||||
chkExportTablesCreate.Checked := True
|
chkExportTablesCreate.Checked := True
|
||||||
else if (Sender = chkExportTablesCreate) and (not chkExportTablesCreate.Checked) then
|
else if (Sender = chkExportTablesCreate) and (not chkExportTablesCreate.Checked) then
|
||||||
chkExportTablesDrop.Checked := False;
|
chkExportTablesDrop.Checked := False;
|
||||||
|
WarnIfChecked(chkExportDatabasesDrop, 'Drop');
|
||||||
|
WarnIfChecked(chkExportTablesDrop, 'Drop');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user