Solved

List Box Question

Posted on 1998-07-13
3
163 Views
Last Modified: 2010-04-04
Is there a way to stop the vertical scroll bar in the TListbox from showing whenever the data goes beyond the length of the box?
0
Comment
Question by:armand
[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
3 Comments
 
LVL 2

Expert Comment

by:odessa
ID: 1357856
Does it mean to hide Scroll bar
0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1357857
   To hide verticall ScrollBar write:
    SetScrollRange(ListBox1.Handle, SB_VERT,0,0,True);
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1357858
Another way...
Cheers, bosism@netvision.net.il

  TNoVScrollListBox = class(TListBox)
  protected
    procedure CreateParams(var Params: TCreateParams); override;
  end;

procedure TNoVScrollListBox.CreateParams(var Params: TCreateParams);
begin
 inherited;
 params.Style := Params.Style and not WS_VSCROLL;
end;
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

617 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