Board index » delphi » HELP: Scroll bar in ListBox

HELP: Scroll bar in ListBox

Hi.

A question: Do ListBoxes allow a horizontal scroll bar ? If so, how do I
activate it ? Using Delphi 2.01.

Thanks in advance.

--

     Quote of the Day: "Thunder rolled. ... It rolled a six."

              http://www4.ncsu.edu/~peguaris/WWW/
         *********************************************
         *            Pavel E. Guarisma N.           *
         *           pegua...@eos.ncsu.edu           *
         *                                           *
         *    Operations Research Graduate Program   *
         *      North Carolina State University      *
         *********************************************

 

Re:HELP: Scroll bar in ListBox


Hi Pavel  

Quote
> A question: Do ListBoxes allow a horizontal scroll bar ? If so, how do I
> activate it ? Using Delphi 2.01.

You Will have to send the list box the following message:
 sendmessage (listbox1.handle,lb_SetHorizontalExtent,width,0);
were width is in pixels

HTH
Allan

Re:HELP: Scroll bar in ListBox


How about

SendMessage(ListBox.Handle, LB_SetHorizontalExtent, PixelWidth , 0);

HtH

Markus

M. Korsmeier o MKIS o Muenster o Germany
author of SMART 97
MKor...@aol.com (delete --)
http://members.aol.com/MKors/mkis.htm

Other Threads