Announcement

Collapse
No announcement yet.

Reading Checkboxes in PB9 Listview

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reading Checkboxes in PB9 Listview

    I have a listview with 1 column and checkbox.
    On a click of the "checkbox" or column 1 I get the appropriate data.

    Behaviour I would like:

    If the checkbox is checked on a click, I add the data in that column to a listbox.
    If the checkbox is unchecked on a click, I remove that data from the listbox.
    If the column is clicked I do nothing.

    Thanks
    Trento Castricone
    www.fileraptor.com
    tren[email protected]

  • #2
    Originally posted by Trento Castricone View Post
    I have a listview with 1 column and checkbox.
    So you already have some source code. Why not post it?

    Comment


    • #3
      I do it here..
      Listview with Multiple Checkbox Columns Demo 2-20-05

      Too bad a search on "listview" and/or "checkbox" in message subject of Source Code Forum couldn't find it. Oh, my bad! It DOES FIND IT! Silly me!

      FWIW, I set the text of a listview subitem when I detect a click, but for sure you can just set some other text. You can use the Listview_GetCheckState macro when you detect the click or double-click.


      MCM
      Michael Mattias
      Tal Systems Inc. (retired)
      Racine WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        MCM, thanks for posting again

        From time to time when I think about that concept, I go to look for your example and sometimes it finds it, most times not.

        Most the time it does not find it, I start searching my own archives or POFFS to find it so I can refresh my mind as to what I have a question about at the time.

        It does bring up a question though....has anyone else run into doing a search on one concept, but most results involve your recent concepts that have nothing to do with what you are searching for?

        (or is that an "OPTION" sort of thing?)
        Engineer's Motto: If it aint broke take it apart and fix it

        "If at 1st you don't succeed... call it version 1.0"

        "Half of Programming is coding"....."The other 90% is DEBUGGING"

        "Document my code????" .... "WHYYY??? do you think they call it CODE? "

        Comment


        • #5
          Thanks Michael

          Links are good - search is not so good.
          Trento Castricone
          www.fileraptor.com
          [email protected]

          Comment


          • #6
            It does bring up a question though....has anyone else run into doing a search on one concept, but most results involve your recent concepts that have nothing to do with what you are searching for?
            Huh?

            The only question that raises is, what were you smoking when you composed that sentence?

            Guantanamo never saw that much torture.
            Michael Mattias
            Tal Systems Inc. (retired)
            Racine WI USA
            [email protected]
            http://www.talsystems.com

            Comment

            Working...
            X