Results 1 to 5 of 5

Thread: Aligning text in a listbox

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Aligning text in a listbox

    Hi all,

    Is there anyway that I could align the text in my listbox to the right justification?

  2. #2

  3. #3
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: Aligning text in a listbox

    It would be nice if some one can generate a Module with a function so that one can

    Call AlignListBox(List1, Right)

    and how to modify the code to centre align the listbox means to add functionality of

    Call AlignListBox(List1, Center)
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

  4. #4
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Re: Aligning text in a listbox

    Quote Originally Posted by paralinx
    Hi all,

    Is there anyway that I could align the text in my listbox to the right justification?
    See the code I just submitted to the code bank.
    http://www.vbforums.com/showthread.php?p=2434949

    Give your music collection a whole new life with PartyTime Jukebox

  5. #5
    Hyperactive Member Vishalgiri's Avatar
    Join Date
    Oct 2003
    Location
    India
    Posts
    345

    Re: Aligning text in a listbox

    Quote Originally Posted by daydee
    See the code I just submitted to the code bank.
    http://www.vbforums.com/showthread.php?p=2434949

    Really nice work, I have gone through the code and tested it too.

    Some suggetions

    1. Insted of placing a picture box Some API Calls can be used to measure the width of text

    2. the Function is needed to be modify such that AlignList(Listboxname, Align) so it will align all the items and one more function which is already implemented by u is AddAlignedItem("String", List, Align)
    Regards,
    Vishalgiri Goswami
    Gujarat, ( INDIA ).
    ---------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width