1. Help with listview
- Posted by Fabio Ramirez <faramire at NEMO.UNIVALLE.EDU.CO> Dec 13, 2000
- 354 views
-------Phoenix-Boundary-07081998- Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Hi, I've been trying to use listview without icons as a datagrid. My problem now is that I can't get rid off the space or indent that is left for the icon. Any help would be appreciated. Here you can see the effect: -------------8<-------------- include win32lib.ew atom Win, lv integer tmp Win =3D create( Window, "The Window", 0, 0, 0, 300, 300, 0 ) lv =3D create( ListView, {"Column 1", "Column 2"}, Win, 20, 20, 200, 200, LVS_REPORT ) tmp =3D addLVItem( lv, 0, {"first field","second field"} ) WinMain( Win, Normal ) ----------------8<-------------- Tks in advance, Fabio ------------------------------------- Fabio Ramirez R. Administrador de Redes - CSI ------------------------------------- -------Phoenix-Boundary-07081998---
2. Re: Help with listview
- Posted by Fabio Ramirez <faramire at NEMO.UNIVALLE.EDU.CO> Dec 13, 2000
- 343 views
-------Phoenix-Boundary-07081998- Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Hola, Matthew Lewis escribi=F3 el 13/12/2000 11:51:36 a.m.: >Unfortunately, I don't think there's an easy way out of this. The only >solution I can see is to set the style LVS_OWNERDRAWFIXED. Thanks Matthew, I hoped that there was some flag that just turn this off, but if there's not I think I can live with that space there. btw did you read a previos message of mine about using a different function to extract icons for imagelists. I'd like to know if what I suggested was right or if you used other function for simplicity or for some other technical reason that I don't know. P.S. Thanks a lot for wrapping all those controls, specially the treeview, I read MSDN info about it several times in the past and got frustrated just trying to understand how it works. Keep the good work! Fabio ------------------------------------- Fabio Ramirez R. Administrador de Redes - CSI ------------------------------------- -------Phoenix-Boundary-07081998---
3. Re: Help with listview
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Dec 13, 2000
- 345 views
> From Fabio Ramirez > Thanks Matthew, I hoped that there was some flag that just > turn this off, > but if there's not I think I can live with that space there. > btw did you > read a previos message of mine about using a different > function to extract > icons for imagelists. I'd like to know if what I suggested > was right or if > you used other function for simplicity or for some other > technical reason > that I don't know. I did see your other message, although I haven't had time to investigate it. I can't say for certain, but I probably used the function I used because it was convenient, and it worked (although not perfectly, as you noted). I think Derek was going to look at it (or maybe I'm just speaking for him now :). If it works better, it should definitely be included. > P.S. Thanks a lot for wrapping all those controls, specially > the treeview, > I read MSDN info about it several times in the past and got > frustrated just > trying to understand how it works. > > Keep the good work! Thanks! Matt