Results 1 to 3 of 3

Thread: Setting tab stops in a list box?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878

    Question

    I am trying to set 3 tab stops across a list box.
    When using the function:

    SendMessage List1.hwnd, LB_SETTABSTOPS, UBound(ListBoxTabs), ListBoxTabs(1)

    what should the last parameter be??

    Should it be ListBoxTabs(0) - i.e. the first in the list?
    Should it be ListBoxTabs(i) - and loop round from 0 to 2 to set the three tabs?
    Should it be ListBoxTabs(1) - because in fact 1 is the first in the list and the array goes from 1 to 3, rather than 0 to 2?

    Thanks,

    Chris

  2. #2
    Addicted Member
    Join Date
    Oct 2000
    Posts
    208

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    More confusion....

    That example shows the final parameter as being ListBoxTabs(0) - as I suspect it should be.

    BUT it also introduces a different option for the 3rd parameter! Rather than using UBound(ListBoxTabs), it uses UBound(ListBoxTabs) + 1.


    Does anyone know?? Does it matter??

    I believe that it does matter, as my application crashes on the 6th or 7th time through the code on Windows 98 when using the third parameter of ListBoxTabs(1). On Win2000 systems it works perfectly.....

    I have modifed the 4th parameter to ListBoxTabs(0), and it hasn't crashed - but it might do as soon as I finish this!!


    Cheers, Chris

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