Sign in to follow this  
Followers 0
rysiora

ListView

6 posts in this topic

How move items in ListView control? I mean real moving, not delete and create new in other place....

And how use this variables from include/GuiListView.au3 :

Const $LVM_DELETEALLITEMS = 0x1009

GUICtrlSendMsg($listview, $LVM_DELETEALLITEMS, 0, 0)

^^ This one works. But how about for example:

$LVM_SETITEMPOSITION ?

$LVNI_SELECTED / $LVIS_SELECTED ?

And sorting - it isn't possible to have normal, standard windows-like sorting?

only those lame methods from UDF (DeleteAll + AddItem) ?

Share this post


Link to post
Share on other sites



How move items in ListView control? I mean real moving, not delete and create new in other place....

And how use this variables from include/GuiListView.au3 :

Const $LVM_DELETEALLITEMS = 0x1009

GUICtrlSendMsg($listview, $LVM_DELETEALLITEMS, 0, 0)

^^ This one works. But how about for example:

$LVM_SETITEMPOSITION ?

$LVNI_SELECTED / $LVIS_SELECTED ?

And sorting - it isn't possible to have normal, standard windows-like sorting?

only those lame methods from UDF (DeleteAll + AddItem) ?

LVM_SETITEMPOSITION Message

Moves an item to a specified position in a list-view control (must be in icon or small icon view).

Is something me and Holger were messing around with a while back

The LAME methods from the UDF are currently the only way without the ability of callback (Which to my knowledge Holger has been working on that for listview also.)

Now if you can come up with a better than the LAME method, I'll be glad to replace the one in the UDFs

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

I suspected, that the UDF functions are the only method, so there is no choice.

But you can't say, that these functions are Pro.

Share this post


Link to post
Share on other sites

I suspected, that the UDF functions are the only method, so there is no choice.

But you can't say, that these functions are Pro.

Pro or not, User Defined Functions are just that, a work around or a method to get something done, that is done quite often.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

How move items in ListView control? I mean real moving, not delete and create new in other place....

And how use this variables from include/GuiListView.au3 :

Const $LVM_DELETEALLITEMS = 0x1009

GUICtrlSendMsg($listview, $LVM_DELETEALLITEMS, 0, 0)

^^ This one works. But how about for example:

$LVM_SETITEMPOSITION ?

$LVNI_SELECTED / $LVIS_SELECTED ?

And sorting - it isn't possible to have normal, standard windows-like sorting?

only those lame methods from UDF (DeleteAll + AddItem) ?

the methods in the UDF work, and they're currently the way to do things, offering a level of abstraction you'd beg for if they didn't exist. If you have a better way to make them, i say go for it, but i would strongly discourage making negative comments about someone else's work, especially when it's not constructive in any way.


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Function Reference says:

Sorting the list by clicking the column name (as in Explorer) is not currently implemented.

Do sth with this?

How select an item in ListView?

^^ tell me how do this, maybe with GUICtrlSendMsg()

Edited by rysiora

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0