Solved

TListBox and ScroolBars

Posted on 1998-05-26
2
603 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now