Article View: news.software.readers
Article #259596Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles?
From: VanguardLH
Date: Wed, 30 Sep 2015 06:21
Date: Wed, 30 Sep 2015 06:21
82 lines
4965 bytes
4965 bytes
Alas, OnGroupEntered event doesn't seem to trigger when I click on a
newsgroup in the tree pane. I moved the code from the message script
(actually just commented it out in the message script) and copied into
the OnGroupEvent event script, so that looked like:
program OnGroupEntered;
procedure OnGroupEntered(Groupname: string);
begin
lockdisplay;
try
// if Groupname <> 'Repository' then // Do not change last view used for Repository folder.
ADo('View6'); // View6 = Show 'Not Ignored' posts, not select the complete thread.
finally
unlockdisplay;
end;
end;
begin
end.
For now, the 'if' is commented out just to see if the OnGroupEntered
event fires or not (to change the view).
View1 = All messages
View6 = Hide Ignored messages (those flagged 'ignored').
To test, I would set the view in the currently selected newsgroup to All
messages (view1). I'd click on a different newsgroup and then click
back on the first newsgroup. The view did not change to Hide Ignored
(view6). Whatever view was last used in a newsgroup is the same view
used when I revisit the newsgroup. So I've lost having a default view
of Hide Ignored when I select (click on) a newsgroup. I even got rid of
the 'try' select and just had the OnGroupEntered event script run:
lockdisplay;
ADo('View6');
unlockdisplay;
Still that did not change the view when I entered a newsgroup. When I
select a view, it becomes the global view for all newsgroups. Clicking
on a newsgroup does not change to view6. Looks like the OnGroupEntered
event is not firing when I click on a newsgroup. Perhaps the ADo()
function or view modes are out of scope for this event script.
The OnWMessage message script might be a windowing event so it fires
when I do something in Dialog's window, like click on a newsgroup. The
OnGroupEntered event script might only affect objects within a group,
like records (articles), and can't do anything outside the group, like
effect a view change.
UPDATE
I tested again because I noticed that sometimes the view got changed
using the OnGroupEntered event script. 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. That
is, in my first testing, I'd change to the All messages view (view1) in
a newsgroup and then start clicking around on other newsgroups. I
wasn't waiting around in the newsgroup (other than to notice the headers
showed up for the articles in the selected newsgroup), so I was only in
a newsgroup for a couple seconds. When bouncing around between
newsgroups, the view was not changing. If I lingered in a newsgroup for
around 5 seconds then the view changed in the next newsgroup that I
selected.
This lag before the OnGroupEntered event fires is way too long. There
are times when I click on a newsgroup, don't see any articles were
marked watch, like those that I started, and move onto the next
newsgroup. The OnGroupEntered event is taking too long before it fires.
Good idea (so I could get at the groupname) but the event is too slow.
The view for the group I just entered is NOT getting changed. If I
linger in that group for 5 seconds (sometimes it take more) then the
view will change on the *next* selected newsgroup. Sometimes it takes
so long before the view gets changed on the *next* selected group that
it seems random if and when the OnGroupEntered event will fire. It
NEVER affects the group that I just entered. It may change the view on
the next selected group although it might take a while of lingering in
the prior group.
There is no lag or iffiness when using the NGLV_WM_LBUTTONUP message
script; however, I don't know how to get at the groupname there.
Technical Details
Message-ID:
<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-mailReferences:
<d6optbFjbkcU1@mid.individual.net> <d6ugo3F1q7fU1@mid.individual.net> <1cob0aematw94$.dlg@b.rose.tmpbox.news.arcor.de> <d71armFnem8U1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <d71dbpFo17tU1@mid.individual.net> Subject: Re: 40tude Dialog: Anyway to keep it from deleting local copies of articles? Date: Wed, 30 Sep 2015 01:21:44 -0500 From: VanguardLH <V@nguard.LH> References: <d6optbFjbkcU1@mid.individual.net> <d6ugo3F1q7fU1@mid.individual.net> <1cob0aematw94$.dlg@b.rose.tmpbox.news.arcor.de> <d71armFnem8U1@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: Usenet Elder Lines: 82 Sender: VanguardLH <> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net R5k4JeD8aAm7sJoWHnv6JwZA4HR4N7LMhhlFDa50RETSdYClqI Keywords: VanguardLH VLH811 Cancel-Lock: sha1:FB55D9smS9ce4F1euoN3fmTp8hI= User-Agent: 40tude_Dialog/2.0.15.41 X-Received-Bytes: 4793 X-Received-Body-CRC: 1913849515