Solved

TListBox and ScroolBars

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Open a URL with Internet Explorer in a new tab (not a new window) 1 146
RESTRequest Parameter 4 54
DBCtrlGrid, Delphi, Scroll 7 32
Get weeknumber and year from date 4 27
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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