1. [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

new topic     » topic index » view message » categorize

2. Re: [Win32Lib][IDE] hScroll list box?

This is a multi-part message in MIME format.

------=_NextPart_000_0024_01C2AA53.6C364A60
	charset="iso-8859-1"

Dan, this does it for me.=20

constant LB_SETHORIZONTALEXTENT =3D 404  -- displayWidth signal value
atom jk jk=3DsendMessage(idList,LB_SETHORIZONTALEXTENT,displayWidth+3,0) =
-- set hscroll bar and display width

george
----- Original Message -----=20
From: Dan Moyer=20
To: EUforum=20
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




------=_NextPart_000_0024_01C2AA53.6C364A60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dan, this does it for me. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>constant LB_SETHORIZONTALEXTENT =3D =
404&nbsp; --=20
displayWidth signal value<BR>atom jk=20
jk=3DsendMessage(idList,LB_SETHORIZONTALEXTENT,displayWidth+3,0) -- set =
hscroll=20
bar and display width</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>george</FONT></DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20
title=3DDANIELMOYER at prodigy.net =
href=3D"mailto:DANIELMOYER at prodigy.net">Dan=20
Moyer</A> </DIV>
<DIV><B>To:</B> <A title=3DEUforum at topica.com=20
href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV>
<DIV><B>Sent:</B> Monday, December 23, 2002 12:47 AM</DIV>
<DIV><B>Subject:</B> [Win32Lib][IDE] hScroll list box?</DIV></DIV>
<DIV><BR></DIV>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Euphoria Mailing =
List =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <BR><BR>Say=20
an item in a list box is longer than the width of the list box, so =
it<BR>doesn't=20
all show; is there a way to make the list box scroll =
horizontally,<BR>like is=20
automatically provided for in a TreeView?&nbsp; (I'd rather not size =
the<BR>list=20
box to make everything show.)<BR><BR>Dan=20
Moyer<BR><BR>=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>This=20
email was sent to: <A=20
href=3D"mailto:gwalters at sc.rr.com">gwalters at sc.rr.com</A><BR><BR>EASY =
UNSUBSCRIBE=20
click here: <A=20
href=3D"http://topica.com/u/?b1dd66.b2Shsm.Z3dhbHRl">http://topica.com/u/=
?b1dd66.b2Shsm.Z3dhbHRl</A><BR>Or=20
send an email to: <A=20
href=3D"mailto:EUforum-unsubscribe at topica.com">EUforum-unsubscribe@topica=
.com</A><BR><BR>T=20
O P I C A -- Register now to manage your mail!<BR><A=20
href=3D"http://www.topica.com/partner/tag02/register">http://www.topica.c=
om/partner/tag02/register</A><BR>=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

------=_NextPart_000_0024_01C2AA53.6C364A60--

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

3. 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

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

4. 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
>
>
>
>

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

5. Re: [Win32Lib][IDE] hScroll list box?

Thanks George; see my note to Derek wondering why his example to Judith :
    vList       = createEx(List, "", vWindow, 10, 60, 400, 400, WS_HSCROLL,
0)
isn't easier.

Dan

----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
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: DANIELMOYER at prodigy.net

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

6. Re: [Win32Lib][IDE] hScroll list box?

Sigh.

I see it now, I hadn't read *all* of the short demo you sent Judith, namely
the part where you *did* programmatically compute the length of the longest
line & then used
LB_SETHORIZONTALEXTENT.

Dan

----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
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
>
>
>
>

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

7. Re: [Win32Lib][IDE] hScroll list box?

Sigh.

I see it now, I hadn't read *all* of the short demo Derek sent Judith,
namely the part where he *did* programmatically compute the length of the
longest line & then used
LB_SETHORIZONTALEXTENT, just like you suggested.

Dan

----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
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: DANIELMOYER at prodigy.net

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

Search



Quick Links

User menu

Not signed in.

Misc Menu