From: Richard Pilkington on
JD

Just a thought! Have you turned of sorting of the list view in the WED. The
sort parameter defaults to Yes and with this the list will be sorted
alphabetically on the first column.

Try turning off sort and then re-build the list in the order that you want it
when the user clicks a button or whatever method you use to kick off the
reordering of items.

For example the list information can be stored in a persistent array with an
element whose data will define the order. Change the order element, re-sort
the array and then call the method to rebuild the list.

HTH

Richard

On 26/05/2010 14:57, JD wrote:
> No.
> May be I can do something like VO Control Order Edit. does anyone know
> how to do this?
>
> Thanks.
>
> Jairo.

--- news://freenews.netfront.net/ - complaints: news(a)netfront.net ---
From: Geoff Schaller on
Jairo,

Did you read the help on this?


ListView_SetItemPosition

The ListView_SetItemPosition macro moves an item to a specified position
in a list view control, which must be in icon or small icon view. You
can use this macro or explicitly send the LVM_SETITEMPOSITION message.



So it is only relevant in these circumstances.
And then it works fine.

Cheers.

Geoff




"JD" <jdhora(a)ig.com.br> wrote in message
news:344484f2-1e6e-4fe7-93ca-2bb951b02d80(a)i31g2000vbt.googlegroups.com:

> May be this an old subject....
>
> I'm trying to do a simple test (change the position of item 2 to the
> first) but I can't do it!
>
> METHOD PBMove( ) CLASS dwX
> LOCAL oPoint AS Point
>
> oPoint := oLV:GetItemPosition(1)
>
> oLV:SetItemPosition(2,oPoint)
>
> SetItemPosition should show the item 2 on the first position, right?
>
> So what I missing? Can you help me?
>
> Thanks.
>
> Jairo

First  |  Prev  | 
Pages: 1 2 3
Prev: SO Service Client V1.4.0
Next: ODBC and Unicode