Is there a feature in the Listview control to shift items up and down?
相关问题
- Is there a Delphi 5 component that can handle .png
- How to create Circular view on android wear?
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
相关文章
- Set color of 'empty' area of ListView in A
- Best way to implement MVVM bindings (View <-> V
- How to overlay items in StackPanel or ListView?
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
You have two options:
My routine for doing the first of these options is like this:
The method
SetListItemValues
is used to populate the columns of the list view.This is a perfect example of why virtual controls are so great.
Not having worked with TListView very much (I mostly use database grids), I took your question as a chance to learn something. The following code is the result, it is more visually oriented that David's answer. It has some limitations: it will only move the first selected item, and while it moves the item, the display for vsIcon and vsSmallIcon is strange after the move.