• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

List Box Question

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
armand
Asked:
armand
1 Solution
 
odessaCommented:
Does it mean to hide Scroll bar
0
 
ronit051397Commented:
   To hide verticall ScrollBar write:
    SetScrollRange(ListBox1.Handle, SB_VERT,0,0,True);
0
 
MatveyCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now