🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
12 messages
12 total messages Started by Rogerh Wed, 03 Dec 2003 16:35
[Dialog] Script to collapse threads
#138619
Author: Rogerh
Date: Wed, 03 Dec 2003 16:35
13 lines
1540 bytes
Whenever I enter a group the threads are all expanded.  I've tried playing
with scripts to see if when I enter a group all threads collapse, but can't
seem to get anything to work.

Anyone got any ideas, still fairly new to Dialog and trying to get my head
around scripting :-)

Roger
-- 
REMOVE INVALID TO REPLY
Roger Haynes
1/12 Nb 'Kinver'
Air Traffic Controllers do it with *minimum* separation.
Re: [Dialog] Script to collapse threads
#138621
Author: AximGuy
Date: Wed, 03 Dec 2003 17:05
20 lines
1751 bytes
On Wed, 3 Dec 2003 16:35:36 +0000, Rogerh wrote:

> Whenever I enter a group the threads are all expanded.  I've tried playing
> with scripts to see if when I enter a group all threads collapse, but can't
> seem to get anything to work.
> 
> Anyone got any ideas, still fairly new to Dialog and trying to get my head
> around scripting :-)
> 
> Roger

Go to the Event tab.
Go to OnGroupEntered 
Click on "new script" (Ctrl N)
Add this where "your code here" is indicated:  

ADo('CollapseAllThreads');

Save the script and exit.
The next group you enter should show collapsed threads.
Re: [Dialog] Script to collapse threads
#138623
Author: Rogerh
Date: Wed, 03 Dec 2003 17:17
32 lines
2160 bytes
On Wed, 03 Dec 2003 17:05:17 GMT, AximGuy wrote:

> On Wed, 3 Dec 2003 16:35:36 +0000, Rogerh wrote:
> 
>> Whenever I enter a group the threads are all expanded.  I've tried playing
>> with scripts to see if when I enter a group all threads collapse, but can't
>> seem to get anything to work.
>> 
>> Anyone got any ideas, still fairly new to Dialog and trying to get my head
>> around scripting :-)
>> 
>> Roger
> 
> Go to the Event tab.
> Go to OnGroupEntered 
> Click on "new script" (Ctrl N)
> Add this where "your code here" is indicated:  
> 
> ADo('CollapseAllThreads');
> 
> Save the script and exit.
> The next group you enter should show collapsed threads.

Excellent, seems to work ok.  Thanks very much

Roger

-- 
REMOVE INVALID TO REPLY
Roger Haynes
1/12 Nb 'Kinver'
Air Traffic Controllers do it with *minimum* separation.
Re: [Dialog] Script to collapse threads
#138624
Author: Wrinklie One
Date: Wed, 03 Dec 2003 17:19
17 lines
1937 bytes
On Wed, 3 Dec 2003 16:35:36 +0000, Rogerh sauntered in and penned :

> Whenever I enter a group the threads are all expanded.  I've tried playing
> with scripts to see if when I enter a group all threads collapse, but can't
> seem to get anything to work.
> 
> Anyone got any ideas, still fairly new to Dialog and trying to get my head
> around scripting :-)
> 
> Roger

Make sure that *Newly retrieved threads etc* in Group /  Default group /
options /  is not ticked.
-- 
Bear ye one another's burdens. (Gal. 6:2)
For every man shall bear his own burden. (Gal. 6:5)
Wrinklie
Re: [Dialog] Script to collapse threads
#138626
Author: AximGuy
Date: Wed, 03 Dec 2003 17:29
7 lines
1358 bytes
On Wed, 3 Dec 2003 17:17:38 +0000, Rogerh wrote:

> Excellent, seems to work ok.  Thanks very much
> 
> Roger

Glad to help!
Re: [Dialog] Script to collapse threads
#138638
Author: Larry
Date: Wed, 03 Dec 2003 21:12
18 lines
2004 bytes
On Wed, 03 Dec 2003 17:29:55 GMT, AximGuy wrote:

> On Wed, 3 Dec 2003 17:17:38 +0000, Rogerh wrote:
> 
>> Excellent, seems to work ok.  Thanks very much
>> 
>> Roger
> 
> Glad to help!

If you then add this line:
ADo ('FirstMessage');
It will reset the cursor on the first message of the group which might help
as well.
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Script to collapse threads
#138659
Author: Jeff Relf
Date: Thu, 04 Dec 2003 08:27
5 lines
1572 bytes
Howdy Larry ,
  You suggest putting  ADo ('FirstMessage');
into program OnGroupEntered;

Thanks ,  That's a good idea .
Re: [Dialog] Script to collapse threads
#138744
Author: Mike
Date: Fri, 05 Dec 2003 17:24
6 lines
1274 bytes
Jeff Relf wrote...

>  [Sorry.  This message is no longer available.]

  *v.nice*
Re: [Dialog] Script to collapse threads
#138889
Author: §ireßird & $ir Vivor
Date: Sun, 07 Dec 2003 10:57
18 lines
1797 bytes
On Wed, 3 Dec 2003 16:35:36 +0000, Rogerh rushed in and exclaimed:

> Whenever I enter a group the threads are all expanded.  I've tried playing
> with scripts to see if when I enter a group all threads collapse, but can't
> seem to get anything to work.
> 
> Anyone got any ideas, still fairly new to Dialog and trying to get my head
> around scripting :-)
> 
> Roger

Why use a script when using Shift - (which gives me the underscore) has the
same effect?? The hyphen (-) collapses each thread when you've finished
with it.  All threads should stay exactly the way you left them.
-- 
$ir Vivor & §ireßird

Please ask for email address *before* mailing
Re: [Dialog] Script to collapse threads
#138891
Author: AximGuy
Date: Sun, 07 Dec 2003 14:04
13 lines
1831 bytes
On Sun, 7 Dec 2003 10:57:13 +0000, §ireßird & $ir Vivor wrote:

> Why use a script when using Shift - (which gives me the underscore) has the
> same effect?? The hyphen (-) collapses each thread when you've finished
> with it.  All threads should stay exactly the way you left them.

I find the script is better for me as it collapses all the threads at once.
It makes it easier for me to scroll through the headers.

I can click on another group and then return to the one I just left to see
all the collapsed threads.  Fewer mouse or keyboard actions that way.

But, what works for me may not work for you!
Re: [Dialog] Script to collapse threads
#138893
Author: Antonio 'Gandalf' Favata
Date: Sun, 07 Dec 2003 14:45
26 lines
2300 bytes
news.software.readers ~ 7/12/2003 15:04 ~ AximGuy:

> I can click on another group and then return to the one I just left to see
> all the collapsed threads.  Fewer mouse or keyboard actions that way.

No need to enter another group ;)
You can add also this script:

|| program NGLV_WM_LBUTTONUP;

|| procedure OnWMessage(var Msg:TMessage;var handled:boolean);
|| begin
||   ADo('FirstMessage');
||   ADo('CollapseAllThreads');
||   ADo('RefreshView');
|| end;

|| begin
|| end.

and you'll need just to click on the group name.
-- 
Fare Well! | 07/12/2003 15:24:43 ~ ICQ:16553733 Jabber:gandalf@nabla.net
G          | 40tude Dialog 2.0.8.1 (in italiano) http://snurl.com/dialog

«Strange help you bring. You are mighty in wizardry, Gandalf the White!»
Re: [Dialog] Script to collapse threads
#138905
Author: AximGuy
Date: Sun, 07 Dec 2003 22:53
26 lines
1965 bytes
On Sun, 7 Dec 2003 15:45:10 +0100, Antonio 'Gandalf' Favata wrote:

> news.software.readers ~ 7/12/2003 15:04 ~ AximGuy:
> 
>> I can click on another group and then return to the one I just left to see
>> all the collapsed threads.  Fewer mouse or keyboard actions that way.
> 
> No need to enter another group ;)
> You can add also this script:
> 
>|| program NGLV_WM_LBUTTONUP;
> 
>|| procedure OnWMessage(var Msg:TMessage;var handled:boolean);
>|| begin
>||   ADo('FirstMessage');
>||   ADo('CollapseAllThreads');
>||   ADo('RefreshView');
>|| end;
> 
>|| begin
>|| end.
> 
> and you'll need just to click on the group name.

Great!
Thanks!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads