1. RE: multi line list box
- Posted by "Greg Haberek" <ghaberek at gmail.com> Nov 15, 2007
- 563 views
- Last edited Nov 16, 2007
I tried once an gave up. I don't remember why, though. Why not use a report-style ListView with no column headers? -Greg -----Original Message----- From: George Walters [mailto:guest at RapidEuphoria.com] Sent: Thursday, November 15, 2007 3:19 PM To: EUforum at topica.com Subject: Re: multi line list box posted by: George Walters <gwalters at s?.rr.com> Actually, I meant multi column list box
2. RE: multi line list box
- Posted by CChris <christian.cuvier at agri?ult?re.gouv.fr> Nov 15, 2007
- 547 views
- Last edited Nov 16, 2007
George Walters wrote: > > > I tried once an gave up. I don't remember why, though. > > Why not use a report-style ListView with no column headers? > > > -Greg > > -----Original Message----- > From: George Walters [mailto:guest at RapidEuphoria.com] > Sent: Thursday, November 15, 2007 3:19 PM > To: EUforum at topica.com > Subject: Re: multi line list box > > > posted by: George Walters <gwalters at s?.rr.com> > > Actually, I meant multi column list box > Check out the listtabs.exw demo which has shipped with win32lib for a long time, and see if it works for you. ListViews have advanced caps way beyond those of lists,, and are usually slightly bulkier to handle as a result. It all depends on what you want to achieve. CChris
3. RE: multi line list box
- Posted by George Walters <gwalters at ?c.rr.?om> Nov 15, 2007
- 555 views
- Last edited Nov 16, 2007
Hmmm, that might work also. I'll look at it.
4. RE: multi line list box
- Posted by George Walters <gwalters at s?.rr.co?> Nov 15, 2007
- 540 views
- Last edited Nov 16, 2007
What I need to do is to highlight/click/arrow to an item and select it by dclick or enter on the item. The list can be long and a 3 or 4 col list seems to be a better approach.
5. RE: multi line list box
- Posted by George Walters <gwalters at sc.??.com> Nov 16, 2007
- 569 views
OK, it seems the listbox with LVS_MULTICOLULMN will work for me, however, I do not know, nor can I find how to reset the column width as I need. It defaults to 12 characters (or so many pixels) and I need to reset it larger. Here's what I'm using constant idListControl = create(List,"",Main,4,cy*22,sw-15,cy*8-bh-sbHeight[2] ,LBS_MULTICOLUMN) Does anyone know how to send a message to this control and change the col width? Or where do I find the doc that tells me how to do it? BTW I'm using win32lib 59.1... perhaps old but it works great for my stuff.
6. RE: multi line list box
- Posted by Bernie Ryan <xotron at b?uefrog.?om> Nov 16, 2007
- 570 views
George Walters wrote: > > OK, it seems the listbox with LVS_MULTICOLULMN will work for me, however, I > do not know, nor can I find how to reset the column width as I need. It > defaults to 12 characters (or so many pixels) and I need to reset it larger. > > Here's what I'm using > > constant idListControl = create(List,"",Main,4,cy*22,sw-15,cy*8-bh-sbHeight[2] > ,LBS_MULTICOLUMN) > > Does anyone know how to send a message to this control and change the col > width? Or where do I find the doc that tells me how to do it? BTW I'm using > win32lib 59.1... perhaps old but it works great for my stuff. George: You can send a message to set the width. LB_SETCOLUMNWIDTH An application sends an LB_SETCOLUMNWIDTH message to a multiple-column list box (created with the LBS_MULTICOLUMN style) to set the width, in pixels, of all columns in the list box. LB_SETCOLUMNWIDTH wParam = (WPARAM) cxColumn; // column width in pixels lParam = 0; // not used; must be zero Parameters cxColumn Value of wParam. Specifies the width, in pixels, of all columns. Return Values This message does not return a value. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
7. RE: multi line list box
- Posted by George Walters <gwalters at sc.r?.?om> Nov 16, 2007
- 545 views
Bernie, where did you find this doc. LB_SETCOLUMNWIDTH does not seem to be in win32lib 59.1. What version did you find this?
8. RE: multi line list box
- Posted by Bernie Ryan <xotron at bluefrog??om> Nov 16, 2007
- 542 views
George Walters wrote: > > Bernie, where did you find this doc. LB_SETCOLUMNWIDTH does not seem to be > in win32lib 59.1. What version did you find this? George: From my MSDN CD; the constant definition is in winuser.h header file. The value of the constant LB_SETCOLUMNWIDTH = #195 Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
9. RE: multi line list box
- Posted by George Walters <gwalters at sc?rr.com> Nov 16, 2007
- 539 views
Ok, google found what I needed. I found that LB_SETCOLUMNWIDTH =#195 and I added that to win32lib version I had and it now works as I need. Thanks for the help.
10. RE: multi line list box
- Posted by George Walters <gwalters at sc.?r.?om> Nov 16, 2007
- 567 views
Thanks for the help. Works like a charm.