listview / listbox problems

From: Metal Dave (metal_at_spam.spam)
Date: 12/29/04

  • Next message: Maarten Wiltink: "Re: listview / listbox problems"
    Date: Wed, 29 Dec 2004 11:33:32 -0800
    
    

    Hi all,

    I would like to display a scrollable list (one column only, scrolls
    vertically but not horizontally) with items that may or may not appear
    greyed out and also that have objects associated with them. At first I
    tried to use TListBox, but they object association of the TStrings Items
    property doesn't work, and I couldn't find a way to grey out objects. I
    then decided to use TListView, which allows you to grey out items with the
    "Cut" property of the TListItems and also whose object association works
    (the "Data" property of the TListItem). However, I still have a problem.

    If I use the style vsList, I get a horizontal scrollbar and multiple
    columns, which I don't want.

    If I use vsReport, I get the vertical scrolling but I also get a "header"
    row which I don't want.

    Any suggestions?

        Dave


  • Next message: Maarten Wiltink: "Re: listview / listbox problems"