Solved

List Box Question

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

Industry Leaders: 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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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