Solved

List Box Question

Posted on 1998-07-13
3
158 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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