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

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Karl-Heinz" <invalid@invalid.invalid>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ListViewItemChanged fires if items is not changed
Date Thu, 20 Apr 2017 15:17:24 +0200
Lines 32
Message-ID <elrqs1Fldi9U1@mid.individual.net> (permalink)
References <2ougfcdbp7qdqerosulp1sp0neavltpgo5@4ax.com>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
X-Trace individual.net R4Iq0loI3Q36u7EEXjOHSAGQlwGJuh4mHqwVDHyPZ06mNK4ZI=
Cancel-Lock sha1:19X//HjYL4MBHNCzEJwbBmL6ZRU=
In-Reply-To <2ougfcdbp7qdqerosulp1sp0neavltpgo5@4ax.com>
X-Priority 3
X-MSMail-Priority Normal
Importance Normal
X-Newsreader Microsoft Windows Live Mail 16.4.3564.1216
X-MimeOLE Produced By Microsoft MimeOLE V16.4.3564.1216
Xref csiph.com comp.lang.clipper.visual-objects:10481

Show key headers only | 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