View Issue Details

IDProjectCategoryView StatusLast Update
0005007JEDI VCL00 JVCL Componentspublic2012-09-10 14:15
ReportertetarddAssigned Toobones 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.46 
Summary0005007: TJvListView: add an OnBeginColumnResize, OnColumnResize, OnEndColumnResize events
DescriptionTJvListView:

Add the above mentioned events as described in:

http://thomasfreudenberg.com/blog/archive/2004/03/14/HDN-TRACK.aspx
http://www.swissdelphicenter.ch/torry/showcode.php?id=1264

Note: The OnBeginColumnResize should have a "Var CanResize : Boolean" param that can be used to prevent that column resizing (see http://www.swissdelphicenter.ch/torry/showcode.php?id=2133).

TagsNo tags attached.

Activities

2009-11-08 10:56

 

ImprovedJvListView.zip (423,317 bytes)

tetardd

2009-11-08 11:02

reporter   ~0016863

Included is my attempt at doing it. It seems to be working perfectly.
You'll find a test unit called ImprovedJvListView where I simply created a descendant of TJvListView for testing the proposed changes, and, a small app to demonstrate it works.
Then, you'll find my proposed additions already included in the SVN version of JvListView.pas unit, all my changes in that unit marked "DT".

Note:
1- I could not resist the temptation in one place to clarify the code by renaming a variable ("Index" which is very unclear into "ColumnIndex" which is much clearer).

2- I also added one small other functionality that I could not find and that would be useful: a variable that indicates which colum is currently sorted. This way, we can save that value, for example in the registry then restore it when re-launching an application. It's called FSortedColumnIndex".

obones

2009-12-04 14:47

administrator   ~0016934

Thanks for this, it will be reviewed and acted upon when we have more time

obones

2012-02-27 15:29

administrator   ~0019583

This is now in SVN

Issue History

Date Modified Username Field Change
2009-11-04 20:49 tetardd New Issue
2009-11-08 10:56 tetardd File Added: ImprovedJvListView.zip
2009-11-08 11:02 tetardd Note Added: 0016863
2009-12-04 14:47 obones Note Added: 0016934
2009-12-04 14:47 obones Status new => acknowledged
2012-02-27 15:29 obones Note Added: 0019583
2012-02-27 15:29 obones Status acknowledged => resolved
2012-02-27 15:29 obones Fixed in Version => Daily / SVN
2012-02-27 15:29 obones Resolution open => fixed
2012-02-27 15:29 obones Assigned To => obones
2012-09-10 14:15 obones Fixed in Version Daily / SVN => 3.46