Results 1 to 5 of 5

Thread: Listboxes again

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Westminster, Md.
    Posts
    163
    I'm referring to the rectangle that denotes focus. On a listbox it hangs around even when the control doesn't have focus, outlining at least one of the 'cells' (for lack of a better term) in the list.

    As far as resizing the whole listbox. The problem with that is that the width of the listbox is divided by the number of columns. So if it's 300 wide, then each column is 150 wide. I'd like to change it so that one column is bigger basically.


    Eiredrake

  2. #2
    Member
    Join Date
    Oct 1999
    Posts
    51
    "width of listbox divided by number of columns" To me that means your dealing with a flex grid, since list boxes don't have multiple columns. To change the column size in a flexgrid:

    flxInbox.ColWidth(x) = 500

    where the "x" is the column #, which I believe starts with 0.

  3. #3
    Guest
    ListBoxes Can have multiple columns, you can specify how many you want.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    Westminster, Md.
    Posts
    163
    "width of listbox divided by number of columns" To me that means your dealing with a flex grid, since list boxes don't have multiple columns. To change the column size in a flexgrid:

    flxInbox.ColWidth(x) = 500

    where the "x" is the column #, which I believe starts with 0.


    ----------
    No... just a standard listbox. But it can have multiple columns... I just want to be able to change the overall width.And no it's not a flex grid...Though I'm starting to think that might be easier.


    Eiredrake

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Are you lot talking about the ListView control? Because if you are, then there are probably very few usable methods for removing the focus rectangle, since it is drawn at a very low level.

    List Control - Single column, one display style, fast
    ListView Control - Many columns, 4 display styles, slow
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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