Announcement

Collapse
No announcement yet.

Listview refresh

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

  • Listview refresh

    I'm using two listviews to display the contents of two text files.
    When the listviews are being filled (40 columns, about 1400 lines)
    I use a dialog with a progressbar to show the current point of reading.

    The problem is that when the listviews are being filled they don't refresh (grayed).
    This doesn't look nice so I need a way to make the listview look smoother when being filled.
    Dialog doevents didn't give any good result.

    Problem is that the progress dialog is active when the listview is
    being filled.

    ------------------

  • #2
    The usual technique for refreshing controls (with a lot of data) is to set the %WM_SETREDRAW state to FALSE while filling the control, then reset the state to TRUE when done. I've not tried this with a listview, but it should work ok.


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

    Comment


    • #3
      This progressbehaviour is something i also exp.

      Your mouse can be reset too.

      ------------------
      [email protected]
      hellobasic

      Comment


      • #4
        The usual technique for refreshing controls (with a lot of data) is to set the %WM_SETREDRAW state to FALSE while filling the control, then reset the state to TRUE when done.

        Thanks it looks much better now.
        Learning all the time over here

        ------------------

        Comment

        Working...
        X