Enable auto scrolling in data- and query grid(s) when mouse is used to select rows. Fixes issue #849.

This commit is contained in:
Ansgar Becker
2009-12-04 21:37:01 +00:00
parent c75df83cfc
commit 94df12fa1f
2 changed files with 5 additions and 0 deletions

View File

@ -1174,6 +1174,7 @@ object MainForm: TMainForm
Width = 575
Height = 228
Align = alClient
AutoScrollDelay = 50
EditDelay = 0
Header.AutoSizeIndex = -1
Header.DefaultHeight = 17
@ -1186,6 +1187,7 @@ object MainForm: TMainForm
LineStyle = lsSolid
PopupMenu = popupDataGrid
TabOrder = 2
TreeOptions.AutoOptions = [toAutoDropExpand, toAutoScroll, toAutoScrollOnExpand, toAutoTristateTracking, toAutoDeleteMovedNodes]
TreeOptions.MiscOptions = [toAcceptOLEDrop, toEditable, toFullRepaintOnResize, toGridExtensions, toInitOnSave, toToggleOnDblClick, toWheelPanning, toEditOnClick]
TreeOptions.PaintOptions = [toHideFocusRect, toShowButtons, toShowDropmark, toShowHorzGridLines, toShowVertGridLines, toThemeAware, toUseBlendedImages, toAlwaysHideSelection]
TreeOptions.SelectionOptions = [toExtendedFocus, toFullRowSelect, toMultiSelect, toRightClickSelect]
@ -1381,6 +1383,7 @@ object MainForm: TMainForm
Width = 575
Height = 206
Align = alClient
AutoScrollDelay = 50
EditDelay = 0
Header.AutoSizeIndex = -1
Header.DefaultHeight = 17
@ -1392,6 +1395,7 @@ object MainForm: TMainForm
LineStyle = lsSolid
PopupMenu = popupResultGrid
TabOrder = 1
TreeOptions.AutoOptions = [toAutoDropExpand, toAutoScroll, toAutoScrollOnExpand, toAutoTristateTracking, toAutoDeleteMovedNodes]
TreeOptions.MiscOptions = [toAcceptOLEDrop, toEditable, toFullRepaintOnResize, toGridExtensions, toInitOnSave, toToggleOnDblClick, toWheelPanning, toEditOnClick]
TreeOptions.PaintOptions = [toShowButtons, toShowDropmark, toShowHorzGridLines, toShowVertGridLines, toThemeAware, toUseBlendedImages, toAlwaysHideSelection]
TreeOptions.SelectionOptions = [toExtendedFocus, toMultiSelect, toRightClickSelect]

View File

@ -8305,6 +8305,7 @@ begin
QueryTab.Grid.Font.Assign(QueryGrid.Font);
QueryTab.Grid.Header.ParentFont := QueryGrid.Header.ParentFont;
QueryTab.Grid.WantTabs := QueryGrid.WantTabs;
QueryTab.Grid.AutoScrollDelay := QueryGrid.AutoScrollDelay;
QueryTab.Grid.OnBeforeCellPaint := QueryGrid.OnBeforeCellPaint;
QueryTab.Grid.OnFocusChanged := QueryGrid.OnFocusChanged;
QueryTab.Grid.OnGetText := QueryGrid.OnGetText;