Re: addLVItem help
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Sep 26, 2002
- 479 views
Michael, First, Read The Fine Manual :) which says: "addLVItem ( object id, atom iIcon, sequence text ) iIcon: index of image from addIcon, addEuBmp, addXpm, or addDIB " which means that you use either the function addIcon, addEuBmp, addXpm, or addDIB to make a pointer (?) to some visual element, ( an icon file, a bitmap file, etc), and then put the variable holding that pointer/index into the "addLVItem position indicated. For example, in the Win32Lib demo, "ListTreeView.exw": closefolder = addIcon( extractIcon( "clsdfold.ico" ) ) openfolder = addIcon( extractIcon( "openfold.ico" )) folders &= addTVItem( TV, closefolder, openfolder, "Root", 0 ) folders &= addTVItem( TV, closefolder, openfolder, "Windows 1", folders[1] ) You may see from the above example that it's not quite as simple as I described, in that if you're wanting to get an icon from a file, you first have to use the "extractIcon" function to index to where it is in the file (or something like that?), and then use "addIcon" to let Win32Lib know where it is (or something like that?); in any event, you can probably see from the example how to proceed. HTH, Dan Moyer ----- Original Message ----- From: <mick15_hello at yahoo.com> To: "EUforum" <EUforum at topica.com> Sent: Wednesday, September 25, 2002 3:25 AM Subject: addLVItem help > > TOTUS TUUS > > Hi, > I have a listView with multiple columns. Where I am having trouble is > using addLVItem. The iIcon part has me completely bewildered. I don't > particularly want any Icons, but, even if I did, how do I do this? > > Thanks Michael. > > > >