Article View: news.software.readers
Article #59887Re: SLRN Capital L
From: Dawn Owens-Nicholson
Date: Fri, 31 Mar 2000 00:00
Date: Fri, 31 Mar 2000 00:00
43 lines
3048 bytes
3048 bytes
Drazen Kacar wrote:
> The problem is when to call that. If you've just executed some macro, my
> function needs to be called to execute that if statement and then do
> something if something needs to be done. It's not a problem to discover
> if article is visible, but it's a problem to have that code executed at
> all times when visibility might have been changed.
If I understand your problem correctly, you don't want to use screen
scraping at all, nor do you really need a hook to execute after *every*
command (or every intrinsic or macro). You need a hook to execute after the
article window becomes visible or invisible.
If this hook existed (and was called article_window_toggle_hidden_hook, just
as an example), you could say:
public define article_window_toggle_hidden_hook ()
{
XFace->article_window_toggle_hidden_hook ();
}
where XFace is your namespace and XFace->article_window_toggle_hidden_hook()
is a function you wrote to handle hiding or decoding and showing the X-Face
for the currently visible article?
> Now, scrolling is a problem. The picture could be placed on the right
> side of summary window, so it stays there all the time while article is
> being displayed.
Again, assuming I understand the process correctly, your window is an X
window, not managed by slrn or S-Lang (except indirectly as I explained
above). Therefore, X's pointer controlled by the mouse could move and
resize this window?
> That would be fine. Although I think that each set function should have
> corresponding get function.
What I meant was there would be one get/set pair for *all* the slrnrc
variables. It would be up to you to use the right type for the variable.
As I type this I can't think of what slrn settable state there is that isn't
covered (or could not be covered) by slrnrc variables. So,
set_variable_value() and get_variable_value() would be (pretty much) it.
Technical Details
Message-ID:
<slrn8e88it.lgc.bluemoon@ux6.cso.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu> <slrn8e7ias.mkf.dave@svarozic.srce.hr>Show Full Headers
Complete Article Headers
Message-ID: <slrn8e88it.lgc.bluemoon@ux6.cso.uiuc.edu> Subject: Re: SLRN Capital L Date: Fri, 31 Mar 2000 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu> <slrn8e7ias.mkf.dave@svarozic.srce.hr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 604629349 X-Complaints-To: abuse@uiuc.edu X-Trace: vixen.cso.uiuc.edu 954475085 128.174.5.9 (Thu, 30 Mar 2000 21:58:05 CST) Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.6.2 (HP-UX) NNTP-Posting-Date: Thu, 30 Mar 2000 21:58:05 CST Newsgroups: news.software.readers