From ff50ff842dd538da043e9670bcd4f2c99cd25c13 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Fri, 23 Dec 2016 20:52:52 +0000 Subject: [PATCH] fpspreadsheet: Make DEFAULT_COL_COUNT and DEFAULT_ROW_COUNT variables (instead of const). git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5561 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../source/visual/fpspreadsheetgrid.pas | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/fpspreadsheet/source/visual/fpspreadsheetgrid.pas b/components/fpspreadsheet/source/visual/fpspreadsheetgrid.pas index 8cff5c76f..2a7f7e0d3 100644 --- a/components/fpspreadsheet/source/visual/fpspreadsheetgrid.pas +++ b/components/fpspreadsheet/source/visual/fpspreadsheetgrid.pas @@ -728,8 +728,16 @@ type const NO_CELL_BORDER: TsCellBorderStyle = (LineStyle: lsThin; Color: scNotDefined); +var + {@@ Default number of columns prepared for a new empty worksheet } + DEFAULT_COL_COUNT: Integer = 26; + + {@@ Default number of rows prepared for a new empty worksheet } + DEFAULT_ROW_COUNT: Integer = 100; + procedure Register; + implementation uses @@ -739,10 +747,6 @@ uses fpsNumFormat; const - {@@ Default number of columns prepared for a new empty worksheet } - DEFAULT_COL_COUNT = 26; - {@@ Default number of rows prepared for a new empty worksheet } - DEFAULT_ROW_COUNT = 100; {@@ Interval how long the mouse buttons has to be held down on a hyperlink cell until the associated hyperlink is executed. } HYPERLINK_TIMER_INTERVAL = 500;