Re: [Win32Lib][IDE] hScroll list box?
Derek,
I'm confused; Judith sent me a demo you provided her which seems to handle
adding a horizontal scrollbar to a listbox much easier, so why isn't that
sufficient? As far as I could see, it sets the scrollbar very nicely with
regard to the size of the longest text in the listbox, scrolls just 2 or 3
characters more than longest textline, leaving a slight border making it
easy to read.
excerpt:
vList = createEx(List, "", vWindow, 10, 60, 400, 400, WS_HSCROLL,
0)
Dan
----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, December 23, 2002 12:26 PM
Subject: Re: [Win32Lib][IDE] hScroll list box?
>
> Thanks George and Dan.
>
> I've added a new routine to the library to help with this. If you call
> setListHScroll(), it will calculate the correct value for the horizontal
> scroll size and set it for the list box. The idea will be to call this
after
> you have added one or more items to the list.
>
> ----------------
> cheers,
> Derek Parnell
> ----- Original Message -----
> From: "George Walters" <gwalters at sc.rr.com>
> To: "EUforum" <EUforum at topica.com>
> Sent: Monday, December 23, 2002 11:17 PM
> Subject: Re: [Win32Lib][IDE] hScroll list box?
>
>
> Dan, this does it for me.
>
> constant LB_SETHORIZONTALEXTENT = 404 -- displayWidth signal value
> atom jk jk=sendMessage(idList,LB_SETHORIZONTALEXTENT,displayWidth+3,0) --
> set hscroll bar and display width
>
> george
> ----- Original Message -----
> From: Dan Moyer
> To: EUforum
> Sent: Monday, December 23, 2002 12:47 AM
> Subject: [Win32Lib][IDE] hScroll list box?
>
>
> Say an item in a list box is longer than the width of the list box, so it
> doesn't all show; is there a way to make the list box scroll horizontally,
> like is automatically provided for in a TreeView? (I'd rather not size
the
> list box to make everything show.)
>
> Dan Moyer
>
> ==^^===============================================================
> This email was sent to: ddparnell at bigpond.com
>
>
>
>
|
Not Categorized, Please Help
|
|