Thread View: news.software.readers
1 messages
1 total messages
Started by Marsjanin
Sun, 18 Sep 2005 13:01
[Dialog] Script ExpandAndCollapse modification - help
Author: Marsjanin
Date: Sun, 18 Sep 2005 13:01
Date: Sun, 18 Sep 2005 13:01
56 lines
3129 bytes
3129 bytes
Hello.
"My" script ExpandAndCollapse, based on Doktor's ExpandGetAndCollapse,
returns here as boomerang. :-) Now I changed GoToPreviousMarker to
GoToNextMarker and it stoped switching two messages across. Works fine
- ALMOST fine. The only problem is now, if I scroll down the message
with Space key, the script is activated and message is redisplayed
from the beginning, and so on. Other keys works OK, also when the
whole message is displayed on one screen, it works fine with Space.
But I want to view it with space. The script should be activated just
when new message is loaded into BodyEdit. I think I need some "if"
action more, that return information, is there end of message? Or, is
there text scrolling, or write from beginning? Huh, I got no idea, how
to do it. If anyone can help me, please do. :-]
The script (now hooked for ArticleLv - nevermind) looks now:
program ARTICLELV_WM_KEYUP;
procedure ExpandAndCollapse ();
begin
lockdisplay;
ADo ('ClearMarkers')
ADo ('AddMarker');
ADo ('CollapseAllThreads');
ADo ('ExpandThread');
ADo ('GoToNextMarker');
unlockdisplay;
beep();
end;
procedure OnWMessage (var Msg : TMessage; var handled : boolean);
begin
// key codes
if ((Msg.WParam = 32) or (Msg.WParam = 38) or (Msg.WParam = 40) or (Msg.WParam = 85) or (Msg.WParam = 68))
// Space, U, D, CrsrUp, CrsrDn
then ExpandAndCollapse ();
handled := false;
end;
begin
end.
--
Pozdrawiam, Marsjanin. WWW : marsjanin.tk
ATI Rage IIC 4 MB RAM AGP - niby lepiej, ale gdzie wąskie gardło DivX?
Nic nie gra. Cudowna cisza... :-]
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