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 Scrollbar to ListBox

Status
Not open for further replies.

Wolfen12

Programmer
Jul 17, 2007
19
NL
Hi

Im very new to VFP, I dont seem to get any scrollbar property on the listbox.Can you put n Horizontal scrollbar on a listbox.Any help will be appreciated.

Thank you
 
Wolfen12,

Welcome to VFP.

Listboxes in VFP do not have horizontal scroll bars. Grids do. If the information that you wish to display is unusually wide, consider using a grid instead of a listbox.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Just to add to my previous reply:

You can use item tips with a listbox. The item tip displays the full text of the item under the mouse, when the listbox is not wide enough to do so.

To enable item tips, set the ItemTips property to .T.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hi

Thanks for the suggestions.
I did think of a grid rather, but this is only an option if I dont have other tricks.
I like the ItemTip idea, I set it to true but it didnt help??? - if Im right it should be like a tooltip
 
In addition to Mikes explanation, if multicolumns in the list box, tooltips will only work if the text in the First column is wider than the width of the list box. Tooltips will not work for the second, third... columns.

If your first column is not wide enough, see the, "Display text, in Item Tips, in a multiple column List Box", in my F&Q's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top