πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59880

Re: SLRN Capital L

#59880
From: Drazen Kacar
Date: Fri, 31 Mar 2000 00:00
85 lines
5034 bytes
Dawn Owens-Nicholson wrote:
> 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.

Yes, but since that's a rather specific need, I thought it's not worth
implementing. And having a hook which executes after every command is a
more generic interface. Of course, that's the road to [X]Emacs...

> 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?

Yep.

> > 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).

Yes.

> Therefore, X's pointer controlled by the mouse could move and
> resize this window?

No. It's not a top level window managed by a Window Manager. Even if it was
a top level window, there are ways to prevent WM from interfering. But
there's no need for that. The window is created as a child of terminal
emulator window. That way WM doesn't do anything with it, it moves
around with the terminal window, it disappears when you iconize the
terminal window etc. Of course, there's a problem with this approach,
because terminal emulator could create another subwindow which could
obscure my X-Face subwindow. But terminal emulators don't do that. :-)
They are very simple applications with respect to window creation and
management.

The C code works fine (it's a gross kludge, but hey...) and I see that
you don't have an X-Face. :-)

Now I only need to notify my application about article invisibility.
That must be done from slrn and since I never wrote anything in S-Lang,
I saved it for the end. I think I'll manage to do something with the existing
interfaces. It probably won't be perfect, though.

> > 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.

Well, since I really never wrote any slrn macro, I don't know if everything's
covered by slrnrc variables. If it is, then...

> So, set_variable_value() and get_variable_value() would be (pretty much) it. 

...your interface would be perfect.

-- 
 .-.   .-.    I don't work for my employer.
(_  \ /  _)
     |        dave@srce.hr
     |        dave@fly.srk.fer.hr

Technical Details
Message-ID: <slrn8e8cuq.oj3.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
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> <slrn8e88it.lgc.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8e8cuq.oj3.dave@svarozic.srce.hr>
Subject: Re: SLRN Capital L
Date: Fri, 31 Mar 2000 00:00:00 +0000
From: dave@srce.hr (Drazen Kacar)
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> <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-mail
X-Deja-AN: 604650683
Mail-Copies-To: never
X-Complaints-To: abuse@news.carnet.hr
X-Trace: bagan.srce.hr 954479636 4386 161.53.2.157 (31 Mar 2000 05:13:56 GMT)
X-Face: 'UIE}WabGB0+U>p-#(hp<_+AD2{H],=qR*jHfm$/e]l0(kU3oOYc5lqG6gg>[\h^IOc{'siD6#!T&loIShgmYHz3#+*D38:|`~\BE,(W~Ol9BDfDwk'lKJ;Z{sY8E9(ME.E]'wvNO`$n#,;9Z`tOFcW/nHZq!BOSrM>V?C<5DTw=<$<xxB~RP@|-Co<|COgeVi1ozw_W>{c{M2V+|)0jSUl&!+8%8nIBF(u:E>SZWM^e
Organization: Čardak ni na nebu, ni na zemlji
X-Attribution: Dave
User-Agent: slrn/0.9.6.0 (SunOS)
NNTP-Posting-Date: 31 Mar 2000 05:13:56 GMT
Newsgroups: news.software.readers