Listview help needed

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

Hi all,
 I have been confused and would like some assistance,
           Let me try to explain to you what i'm trying to do before i ask
this question. I'm creating a program that
has a listview with 4 columns.

inboxlv = create(ListView,"",mainwindow,124,43,506,100,or_all({LVS_REPORT,
LVS_NOSORTHEADER}))
--Columns for the inbox listview
insertListViewColumn(inboxlv,0,0,LVCFMT_LEFT,45, "Priority",0)
insertListViewColumn(inboxlv,1,0,LVCFMT_LEFT,160, "From:",0)
insertListViewColumn(inboxlv,2,0,LVCFMT_LEFT,170,"Subject:",0)
insertListViewColumn(inboxlv,3,0,LVCFMT_CENTER,120,"Received",0)

the program also has a menu containing four menuitems, i want when the first
menuitem is pressed, the first
column "Priority" is sorted in ascending order, if the second menu item is
pressed the second column is
sorted in ascending order ans so on......(Just ascending order)

	I read something in the win95hlp that if you simply use LVS_SORTASCENDING
the work would be done for
me automatically however that is not working, when i create my listview with
that style, no listview item is
shown.
	I'm currently using the win32lib ver 55.5 , i tried copying a procedure
found in win32lib 56 called
sort items(). it does the work but if you call it the second time it sorts
in the opposite of the first sort, more like
what is done, when you click a column header of a listview that was made
without using this style
			LVS_NOSORTHEADER

Some one give assistance please.......or code on how you can make a listview
column sort in only ascending order, when a menuItem is clicked

Jordah Ferguson
<jorfergie03 at yahoo.com>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu