Announcement

Collapse
No announcement yet.

Listview Q

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

  • Listview Q

    I have a listview, and an old CreateWindow style dialog, using a WNDPROC etc etc.

    The listview displays:
    Event Number Day of week Date/time Username Computername


    That data is parsed out of a string called g_sClipText and appended to the listview.


    What would be the best way to sort this data by whichever title the user clicks on, and how do you do that with a Listview?
    I have all of the functions, it may be one of the one's in there...

    Here is a sample of the data that goes in the listview. I am separating these with a "|" sybol so each element is more clear:

    1 Friday | June 29, 2001 8:04 AM | turchinsp | TNG2K
    2 Thursday | June 28, 2001 6:00 AM | turchinsp | TNG2K



    ------------------
    Scott
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    scott,

    this is very close to what you are looking for.

    '-------------------------------------------------
    'message
    'forum: source code
    'topic: pddll5: generic listview example
    'name: peter redei, member
    'date: may 02, 1999 05:52 pm

    this example shows how to create a listview control and use it in record view
    including sorting. the main module is the modified skeleton.bas.
    '-------------------------------------------------

    regards,
    jules

    Comment


    • #3
      The page cannot be found
      The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.



      ------------------
      Scott
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment


      • #4
        That page was archived some time back...

        Jules probably had the URL listed locally on his PC. However a quick search for "generic listview" found it immediately... http://www.powerbasic.com/support/fo...-7-000233.html




        ------------------
        Lance
        PowerBASIC Support
        mailto:[email protected][email protected]</A>
        Lance
        mailto:[email protected]

        Comment


        • #5
          Scott;

          I did my search with Borje Hagstens POFFS, that is where I cut and pasted
          the info above from.

          You will also need Peter's ListView.Bas wrapper file. If you like I can
          email the complete source w/binary to you for your convienence.

          Just drop me a message mailto:[email protected][email protected]</A>

          Regards,
          Jules

          Comment

          Working...
          X