Solved

List Box Question

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

13 Experts available now in Live!

Get 1:1 Help Now