Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10481

Re: ListViewItemChanged fires if items is not changed

From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ListViewItemChanged fires if items is not changed
Date 2017-04-20 15:17 +0200
Message-ID <elrqs1Fldi9U1@mid.individual.net> (permalink)
References <2ougfcdbp7qdqerosulp1sp0neavltpgo5@4ax.com>

Show all headers | View raw


Hi Dick,

> However, apparently it also fires if listviewitems are just displayed.
> I would say that is not what it should do.
> What is the best way to make sure I only get my code running when
> someone actually checks an item?

What you can do is to suspend the ListViewItemChanged() code as long the 
window is not visible.


METHOD ListViewItemChanged(oEvent) CLASS  <YourWindow >
LOCAL pNMLV  AS _winNM_LISTVIEW 
LOCAL symListView AS SYMBOL


   SUPER:ListViewItemChanged(oEvent)


    IF SELF:isvisible()  // <-------- 

       ...
       ...


    ENDIF

    RETURN NIL


regards
Karl-Heinz

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ListViewItemChanged fires if items is not changed D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-04-20 11:21 +0200
  Re: ListViewItemChanged fires if items is not changed "Karl-Heinz" <invalid@invalid.invalid> - 2017-04-20 15:17 +0200
    Re: ListViewItemChanged fires if items is not changed D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-04-21 10:50 +0200
      Re: ListViewItemChanged fires if items is not changed "Karl-Heinz" <invalid@invalid.invalid> - 2017-04-21 13:46 +0200

csiph-web