Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horizontal scroll bar in list box

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

Is it possible to have Horizontal scroll bar in list box ?

Thanks
 
NO. You can't even do it when you set the width to be smaller then the text length. [deejay]
Nate
"If you're not living on the edge, you're taking up too much space!"
 
NO. You can't even do it when you set the width to be smaller then the text length.

[deejay]
Nate
"If you're not living on the edge, you're taking up too much space!"
 
I think you could simulate it using DIV tags and a style attribute OVERFLOW:SCROLL
 
Here is an example:

<html><body>
<div style=&quot;width:300; height:100; overflow-x:scroll&quot;>
<table width=&quot;600&quot;>
<tr><td>
Now is the winter of our discontent
</td><td>
made glorious summer by this son of York
</td></table></div></body></html>
 
or this:

<html><body>
<div style=&quot;width:300&quot;><fieldset>
<div style=&quot;width:300; height:100; overflow-x:scroll&quot;>
<table width=&quot;600&quot;>
<tr><td>
Now is the winter of our discontent
</td><td>
made glorious summer by this son of York
</td></table></div></fieldset></div></body></html>
 
Thanks for the response.

But this method unlike listbox doesn't provide the ability to select the records.

 
Well unlike general GUI there is not a listbox object as such. (I assumed that you meant a textarea).

You can use a drop-down list (select) or you can implement it with a table as I have done. You would need an onclick event for each cell in the table.

Otherwise you could use button objects and put them in either colums or rows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top