You've already forked lazarus-ccr
RxFPC:fix cancel button click in RxDBGridExportSpreadSheet_ParamsForm
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8877 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -9,7 +9,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '2.1.0.0'
|
LCLVersion = '3.99.0.0'
|
||||||
object Label1: TLabel
|
object Label1: TLabel
|
||||||
AnchorSideLeft.Control = Owner
|
AnchorSideLeft.Control = Owner
|
||||||
AnchorSideTop.Control = Owner
|
AnchorSideTop.Control = Owner
|
||||||
@@ -29,7 +29,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 12
|
Left = 12
|
||||||
Height = 34
|
Height = 29
|
||||||
Top = 29
|
Top = 29
|
||||||
Width = 530
|
Width = 530
|
||||||
Filter = 'All files (*.*)|*.*|LibreOffice/OpenOffice (*.ods)|*.ods|Excel 97-2003|*.xls|Excel 2007-2013|*.xlsx'
|
Filter = 'All files (*.*)|*.*|LibreOffice/OpenOffice (*.ods)|*.ods|Excel 97-2003|*.xls|Excel 2007-2013|*.xlsx'
|
||||||
@@ -49,7 +49,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 280
|
Left = 280
|
||||||
Height = 17
|
Height = 17
|
||||||
Top = 185
|
Top = 180
|
||||||
Width = 67
|
Width = 67
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Page name'
|
Caption = 'Page name'
|
||||||
@@ -63,8 +63,8 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 286
|
Left = 286
|
||||||
Height = 34
|
Height = 29
|
||||||
Top = 208
|
Top = 203
|
||||||
Width = 256
|
Width = 256
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
@@ -76,7 +76,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 127
|
Top = 122
|
||||||
Width = 155
|
Width = 155
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export column footer'
|
Caption = 'Export column footer'
|
||||||
@@ -88,7 +88,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 69
|
Top = 64
|
||||||
Width = 133
|
Width = 133
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Open after export'
|
Caption = 'Open after export'
|
||||||
@@ -96,8 +96,8 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
end
|
end
|
||||||
object ButtonPanel1: TButtonPanel
|
object ButtonPanel1: TButtonPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 46
|
Height = 42
|
||||||
Top = 276
|
Top = 280
|
||||||
Width = 536
|
Width = 536
|
||||||
OKButton.Name = 'OKButton'
|
OKButton.Name = 'OKButton'
|
||||||
OKButton.DefaultCaption = True
|
OKButton.DefaultCaption = True
|
||||||
@@ -116,7 +116,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 98
|
Top = 93
|
||||||
Width = 159
|
Width = 159
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export column header'
|
Caption = 'Export column header'
|
||||||
@@ -128,7 +128,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 156
|
Top = 151
|
||||||
Width = 130
|
Width = 130
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export cell colors'
|
Caption = 'Export cell colors'
|
||||||
@@ -150,7 +150,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 280
|
Left = 280
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 98
|
Top = 93
|
||||||
Width = 155
|
Width = 155
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Overwrite existing file'
|
Caption = 'Overwrite existing file'
|
||||||
@@ -162,7 +162,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 280
|
Left = 280
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 69
|
Top = 64
|
||||||
Width = 117
|
Width = 117
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export formula'
|
Caption = 'Export formula'
|
||||||
@@ -174,7 +174,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 185
|
Top = 180
|
||||||
Width = 151
|
Width = 151
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export selected rows'
|
Caption = 'Export selected rows'
|
||||||
@@ -186,7 +186,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 280
|
Left = 280
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 127
|
Top = 122
|
||||||
Width = 123
|
Width = 123
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Hide zero values'
|
Caption = 'Hide zero values'
|
||||||
@@ -198,8 +198,8 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 214
|
Top = 209
|
||||||
Width = 99
|
Width = 97
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Merge cell''s'
|
Caption = 'Merge cell''s'
|
||||||
TabOrder = 11
|
TabOrder = 11
|
||||||
@@ -210,7 +210,7 @@ object RxDBGridExportSpreadSheet_ParamsForm: TRxDBGridExportSpreadSheet_ParamsFo
|
|||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 280
|
Left = 280
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 156
|
Top = 151
|
||||||
Width = 135
|
Width = 135
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'Export group data'
|
Caption = 'Export group data'
|
||||||
|
@@ -95,12 +95,14 @@ end;
|
|||||||
procedure TRxDBGridExportSpreadSheet_ParamsForm.FormCloseQuery(Sender: TObject;
|
procedure TRxDBGridExportSpreadSheet_ParamsForm.FormCloseQuery(Sender: TObject;
|
||||||
var CanClose: boolean);
|
var CanClose: boolean);
|
||||||
begin
|
begin
|
||||||
CanClose:=(FileNameEdit1.FileName<>'');
|
if ModalResult = mrOk then
|
||||||
if not CanClose then
|
|
||||||
begin
|
begin
|
||||||
ErrorBox(sRxNotDefinedFileName);
|
CanClose:=(FileNameEdit1.FileName<>'');
|
||||||
FileNameEdit1.SetFocus;
|
if not CanClose then
|
||||||
Exit;
|
begin
|
||||||
|
ErrorBox(sRxNotDefinedFileName);
|
||||||
|
FileNameEdit1.SetFocus;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user