Re: ListView Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

don cole wrote:
> 
> Hello everybody,
> 
>    I have 2 small questions here.
> 
> if I go:
> 
> for x=1 to 10 do
>  VOID &=addLVItem(LV,0,sprintf("%d",x))
> end for
> 
> I get in Listview column 1:
> 
> 10
> 9
> 8
> 7
> 6
> 5
> 4
> 3
> 2
> 1
> 
> 1.) Is there a way to reverse the order (1 at the top; 10 at the bottom)
> without
> having to hit the headings tab?
> 

 From Win32lib docs:
[func]
setLVInsert (integer pFlag )
Sets the default position for ListView inserts.
Returns: The flag setting before this change.
Category: ListView Control


If pFLag is zero, addLVItem() adds new items to the top of the list, else new
items are added at the end. The default is to add items to the top of lists.

Example: 

     integer lvInsert
     -- Make listviews add to end of lists.
     lvInsert = setLVInsert( 1 )

> 2.) Is there a way to put just the number in without using sprintf?
> 
>  VOID &=addLVItem(LV,0,x))?
>  
> TIA
> 
> Don Cole

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu