Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to set a horizontal scrollbar to a listbox? Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Set a horizontal scrollbar to a listbox 08-Aug-04
Category
VCL-General
Language
Delphi All Versions
Views
215
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
Darley, F. Joe
Reference URL:
			
1 2 (* This code will be useful whenever you have more text in a 3 listbox than the listbox can display, by setting he vertical 4 scrollbar to horizontal. *) 5 unit Unit1; 6 7 interface 8 9 uses 10 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 11 Dialogs, StdCtrls; 12 13 type 14 TForm1 = class(TForm) 15 ListBox1: TListBox; 16 procedure FormCreate(Sender: TObject); 17 private 18 { Private declarations } 19 public 20 { Public declarations } 21 end; 22 23 var 24 Form1: TForm1; 25 26 implementation 27 28 {$R *.dfm} 29 30 procedure TForm1.FormCreate(Sender: TObject); 31 begin 32 SendMessage(Listbox1.Handle, LB_SetHorizontalExtent, 1000, Longint(0)); 33 end; 34 35 end.
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC