🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #134110

Re: [Xnews] Creating own buttons

#134110
From: Murray Peterson
Date: Thu, 25 Sep 2003 14:46
34 lines
2333 bytes
"James G" <james_g@REMOVETHISTEXTxosl.fsnet.co.uk> wrote in
news:bku8e2$pat$1@news6.svr.pol.co.uk: 

> Can someone give an example of how to create a button which runs this
> when I press it
> 
> OnLoaded=acvRemoveFilter,acvShowGT0Score
> 
> Can this be done or does the [toolsbars] section mean that only those
> command slisted there can be executed?

You can create a button and map it to a single command, NOT a sequence of 
commands.  Also, a toolbar button can't occur at "OnLoaded", since that 
occurs before you can get a chance to poke the button.

Try this (you will need to obtain or create 3 icons):

[UserButtons]
ublack=acvRemoveFilter|d:\bin\xnews\black.ico|View everything
ugrey=acvShowGt_9999Score|d:\bin\xnews\grey.ico|View soft killed
ublue=acvShowGe0Score|d:\bin\xnews\blue.ico|View filtered

[ToolBars]
A1=-,bShowAllHeaders,bFixedFont,bRaw,bWrap,-,bAttach,bFollowUp,-
,bBack,bForw,-
,bRef,bNextQ,bPrevTh,bNextTh,bPrevUnread,bNextUnread,bSkipQuote,-
,ublack,ugrey,ublue
A2=bCatchUp,bStop,bDecode,bRefresh,bArchive,bSend,bEdit,bStorage,bPurge

-- 
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL:   http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID: <Xns940159477A244farkle@24.71.223.159>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!pd7tw3no.POSTED!53ab2750!not-for-mail
References: <bkt808$pij$1@newsg2.svr.pol.co.uk> <9400B9B0C69152E284CEEC009E394A9D7@127.0.0.1> <bku8e2$pat$1@news6.svr.pol.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <Xns940159477A244farkle@24.71.223.159>
Subject: Re: [Xnews] Creating own buttons
Date: Thu, 25 Sep 2003 14:46:15 GMT
From: Murray Peterson <mwp@home.com.invalid>
References: <bkt808$pij$1@newsg2.svr.pol.co.uk> <9400B9B0C69152E284CEEC009E394A9D7@127.0.0.1> <bku8e2$pat$1@news6.svr.pol.co.uk>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!pd7tw3no.POSTED!53ab2750!not-for-mail
X-Trace-PostClient-IP: 68.145.203.126
Newsgroups: news.software.readers
Organization: None
User-Agent: Xnews/06.02.16
Lines: 33
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse@shaw.ca
X-Trace: pd7tw3no 1064501175 24.71.223.147 (Thu, 25 Sep 2003 08:46:15 MDT)
NNTP-Posting-Date: Thu, 25 Sep 2003 08:46:15 MDT