Article View: news.software.readers
Article #259600Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
From: Bernd Rose
Date: Wed, 30 Sep 2015 15:28
Date: Wed, 30 Sep 2015 15:28
40 lines
2819 bytes
2819 bytes
On Wed, 30 Sep 2015 01:21:44 -0500, VanguardLH wrote:
> Alas, OnGroupEntered event doesn't seem to trigger when I click on a
> newsgroup in the tree pane. [...] What I found through further
> testing is that I have to remain in a newsgroup for about 5 seconds
> before switching away to another newsgroup for this event to fire.
No. With your sample code you just wait for the next screen refresh to
show your changes. Your code needs to explicitly fire up the refresh:
;---------------------------------------------------------------------
program OnGroupEntered;
procedure OnGroupEntered(sName: string);
begin
if sName<>'news.software.readers' then
begin
ADo('View1');
ADo('RefreshView');
end
else
begin
ADo('View2');
ADo('RefreshView');
end;
end;
begin
end.
;---------------------------------------------------------------------
This example works fine and acts immediately. A short remark to Lock/Unlock:
This is only necessary to /prevent/ screen updates, esp. when a large number
of screen relevant actions in a row may cause an unwanted screen flicker. In
your case it is counterproductive... - In case you wonder, why this didn't
cause problems in the LButtonUp-Script: LButtonUp acts before any drawing
in the header pane (to reflect the group change) occurs. OnGroupEntered acts
just a little bit later.
Bernd
Technical Details
Message-ID:
<fhvxoml4nsbc.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<d6optbFjbkcU1@mid.individual.net> <d6ugo3F1q7fU1@mid.individual.net> <1cob0aematw94$.dlg@b.rose.tmpbox.news.arcor.de> <d71armFnem8U1@mid.individual.net> <d71dbpFo17tU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <fhvxoml4nsbc.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles? Date: Wed, 30 Sep 2015 17:28:34 +0200 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <d6optbFjbkcU1@mid.individual.net> <d6ugo3F1q7fU1@mid.individual.net> <1cob0aematw94$.dlg@b.rose.tmpbox.news.arcor.de> <d71armFnem8U1@mid.individual.net> <d71dbpFo17tU1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 40 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net rJFaReBs0eSEOe/QPIIJ6B7IOGWzy+OtctyvyykrTJwWVzRnXT4p/e9ytaWJGtzIOFUUwSfPs6XhN6ic0r6n+g== NNTP-Posting-Date: Wed, 30 Sep 2015 15:28:35 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="3u2Zs0bEw1gRgQu3rpPk1i7vwd/GFFoYxG6i5DyTqz3VjK33nn4FSnwyfOqviCrJsMqJQ94ZA5L2fYjlXcR51cLZ9Z8+MD1/x949oHPlm3zAYokhe9BWkwYesEPiaX+5"; mail-complaints-to="abuse@albasani.net" User-Agent: 40tude_Dialog/2.0.15.41 (8f46dd08.104.311) Cancel-Lock: sha1:+o3cLp+yCVUgnN9znu+JVyMQVl4= X-Received-Bytes: 2661 X-Received-Body-CRC: 2237314199