diff options
author | drewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-17 18:30:40 +0000 |
---|---|---|
committer | drewski207 <drewski207@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-17 18:30:40 +0000 |
commit | 00075dfe1de2b2f727437a7cda815b6079969179 (patch) | |
tree | 8448c14ec6811b57cdd216707eb339e63c23f5f7 | |
parent | 69576cef36d1732fdf1c4fadbb568b2fba89ef7e (diff) | |
download | fpGUI-00075dfe1de2b2f727437a7cda815b6079969179.tar.xz |
* Fixed a bug introduced in 312
* Fixed clicking past the right of a item
-rw-r--r-- | src/gui/gui_listview.pas | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/gui_listview.pas b/src/gui/gui_listview.pas index 94847ed6..509fcdbc 100644 --- a/src/gui/gui_listview.pas +++ b/src/gui/gui_listview.pas @@ -712,6 +712,8 @@ begin Exit; if Index >= FItems.Count then Exit; + if FHScrollBar.Position - 2 + X > GetVisibleColumnsWidth then + Exit; Result := FItems.Item[Index]; end; @@ -901,10 +903,11 @@ begin end; LastColumn := Column; end; + if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then + if (HeaderX - curLeft) < 5 then + FResizingColumn := LastColumn; end; - if not Assigned(FResizingColumn) and Assigned(LastColumn) and LastColumn.Resizable then - if (HeaderX - curLeft) < 5 then - FResizingColumn := LastColumn; + Inc(cRect.Top, HeaderHeight); end; |