1. RE: multi line list box

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

new topic     » topic index » view message » categorize

2. RE: multi line list box

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

new topic     » goto parent     » topic index » view message » categorize

3. RE: multi line list box

Hmmm, that might work also. I'll look at it.

new topic     » goto parent     » topic index » view message » categorize

4. RE: multi line list box

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.

new topic     » goto parent     » topic index » view message » categorize

5. RE: multi line list box

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.

new topic     » goto parent     » topic index » view message » categorize

6. RE: multi line list box

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

new topic     » goto parent     » topic index » view message » categorize

7. RE: multi line list box

Bernie, where did you find this doc. LB_SETCOLUMNWIDTH does not seem to be
in win32lib 59.1. What version did you find this?

new topic     » goto parent     » topic index » view message » categorize

8. RE: multi line list box

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

new topic     » goto parent     » topic index » view message » categorize

9. RE: multi line list box

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.

new topic     » goto parent     » topic index » view message » categorize

10. RE: multi line list box

Thanks for the help. Works like a charm.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu