summaryrefslogtreecommitdiff
path: root/src/gui/fpg_basegrid.pas
AgeCommit message (Collapse)Author
2011-12-05Implements BorderStyle property for basegrid widget.Graeme Geldenhuys
2011-12-05Remove redundant painting code in basegrid.Graeme Geldenhuys
The HandlePaint() method is already wrapping with BeginDraw/EndDraw calls in the TfpgWidget class.
2011-07-27BaseGrid and Home/End key handling and focused cells.Graeme Geldenhuys
We never used to check if we are allowed to set the FFocusCol, we just assumed we are allowed. Now we try each column while calling CanSelectCell() in each iteration so we select the first available column.
2011-07-27BaseGrid.HandleKeyPress and consume variable behaviour has changed.Graeme Geldenhuys
Old behaviour we simply forced Consumed = True and later Consumed = False. This has a very good chance of overwriting the origin consume value. We now only set consume to True, if it is really so.
2011-06-21prevent duplicate FocusChanged events firing.Graeme Geldenhuys
Calling FollowFocus already calls CheckFocusChanged.
2011-06-20bug: a scrolled grid with smoothscroll enabled did not allow columns to be ↵Graeme Geldenhuys
resized. - My calculations was totally out of wack! Now it works as it should. - Also made sure scrollbars are correctly updated if Beginupdate..Endupdate is used.
2011-06-20bug: fixed grid horizontal scrollbar size when smoothscroll is enabled.Graeme Geldenhuys
The horizontal scrollbar was always the same size as the width of the grid, so it couldn't actually scroll columns.
2010-10-29New Grid HeaderStyle property, and new Canvas/Style.DrawBevel() methodGraeme Geldenhuys
Grid.HeaderStyle has Button, Thin and Flat options New DrawBevel can draw a bevel raised or lowered using standard system colors. Quite similar to TfpgBevel. New DrawBevel() method and new Grid.HeaderStyle option.
2010-09-11Grid horizontal scrollbar thumb button size improvement.Graeme Geldenhuys
This patch improves the default scrollbar thumb button size calculation (SliderSize value).
2010-09-04Speed up grid scrolling with mouse wheel x3Graeme Geldenhuys
2010-05-25Disable grid smooth scrolling by default.Graeme Geldenhuys
I don't want to alter behaviour of existing fpGUI applications.
2010-05-24grids: 90% of smoothscrolling support is implemented.Graeme Geldenhuys
It now needs lots of testing though!
2010-04-30BaseGrid: OnRowChange and OnFocusChange does not occur.Clemens Capitain
When a grid has zero rows and you add a row, neither OnRowChange nor OnFocusChange get fired. This patch fixes this.
2010-04-28TfpgBaseGrid now has a new option and property: alternative colorGraeme Geldenhuys
The AlternativeBGColor property only takes affect when the go_AlternativeColor grid option is enabled. go_AlternativeColor also takes preference over ColumnBackgroundColor[]
2010-04-28TfpgBaseGrid now updated by using new predefined grid colors.Graeme Geldenhuys
2010-04-26Add PopupMenu property to StringGrid.Graeme Geldenhuys
At the moment the popup menu only appears if user clicks outside the Header row. Maybe this behaviour will become user selectable in the future.
2010-04-21Grid.OnDrawCell: The drawstate set was not correctly reset after each loop.Graeme Geldenhuys
This caused the OnDrawCell AFlags variable to always contain gdSelected and gdFocused - which made OnDrawCell event handlers rather useless. This is now fixed!
2010-02-26Update copyright notice in all units.Graeme Geldenhuys
2009-07-28Minor code formattingGraeme Geldenhuys
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
2009-07-06StringGrid RowCount update bug fixGraeme Geldenhuys
- When RowCount was changed it refreshed the grid to much. - BeginUpdate / EndUpdate did not always update scrollbar position.
2009-02-04* CustomGrid now calls Update instead of Repaint. This now conforms to ↵graemeg
BeginUpdate..EndUpdate requests. * StringGrid now has a Clear method.
2008-09-27* Phase 2 of the unit rename is complete. The gui units have now been renamed.graemeg
* UI Designer has been updated to reflect the new gui unit names.