Solved

TListBox and ScroolBars

Posted on 1998-05-26
2
610 Views
Last Modified: 2012-06-21
How to make a ListBox with horizontal ScrollBar,
and how to make ListBox without any ScroolBars?
0
Comment
Question by:bor061297
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Expert Comment

by:bsimser
ID: 1347998
If you make a listbox and the items are wider than the listbox, it will automatically scroll horizontally for you. As for making a listbox without scrollbars, you won't see any scrollbars if your items don't exceed the height of the listbox. If you want to make a listbox not scroll, set the Style property to lbOwnerDrawFixed or lbOwnerDrawVariable and override the paint method to draw your items.
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1347999
To make horizontal ScrollBar write:
ListBox1.Perform(LB_SETHORIZONTALEXTENT,500,0);
To hide verticall ScrollBar write:
SetScrollRange(ListBox1.Handle, SB_VERT,0,0,True);
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month8 days, 6 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question