🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Marcus Mönnig Sun, 17 Aug 2003 12:32
Re: [Dialog] Application.Mainform bad behaviour
#130905
Author: Marcus Mönnig
Date: Sun, 17 Aug 2003 12:32
13 lines
1658 bytes
On Sat, 16 Aug 2003 06:52:54 +0200, Alain GUERIN wrote:

 
> Any idea before I put it in Mantis ?

Fixed for Beta 29.

Marcus
-- 
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Application.Mainform bad behaviour
#130925
Author: Marcus Mönnig
Date: Sun, 17 Aug 2003 14:27
16 lines
1877 bytes
On Sun, 17 Aug 2003 16:07:15 +0200, Alain GUERIN wrote:


> Is message <3f28c07e$0$30391$626a54ce@news.free.fr> also in the same "class"
> of issues ?

No. You simply can't use forms in scripts that are called from worker
threads. They are only available in scripts that are called from the main GUI
thread.

Marcus
-- 
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Application.Mainform bad behaviour
#130982
Author: Marcus Mönnig
Date: Sun, 17 Aug 2003 21:25
33 lines
2646 bytes
On Sun, 17 Aug 2003 22:40:13 +0200, Alain GUERIN wrote:

> Thanks.  
> 
> After failing with forms, I tried, without success, MessageBox and ReadLn
> in a case where I want to simulate the box we have when we send a message
> where the last lines are quoted:   
> 
> "Quoted text at the end of message. (Bad posting style)   
> Ignore these warning?  
> Yes No"  
> 
> and change, depending on the answer, the result of OnBeforeSendingMessage.  
> 
> Is there a solution or no way to have a message from a script that controls
> in a post what I try to send or to save?  

The problem is that you can't use anything that has a graphical interface in
script called from worker threads. This includes forms and
MesssageBoxes.
Further it's a bit too late to do these checks that need user intervention
when the message is sent (when Dialog is about to open the connection
to the remote server).

I could add another event OnOutgoingMessageCheck where you could add your
own checks to the ones Dialog makes.

Marcus
-- 
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] Application.Mainform bad behaviour
#131003
Author: Norbert Schmidt
Date: Mon, 18 Aug 2003 03:51
31 lines
2218 bytes
Hello Alain,

> There could be another work around, that does not seem to be in Mantis as
> feature : add the possibility to run a script from the composition window.
> That will give the ability to run a check or a writing tool at any time.

> As it could be more general, particularly if it gives access to the text
> already in the composition window, if it is easier or quicker to implement,
> it's up too you :-)

> If useful, I can even add it in Mantis ;-)

do it! ;-)

Already some ideas for CW-scripts spring to my mind:

- Fix OE mangled quotes
- patch FIDO style quotes (initials)
- create individual attribution lines for special people
...

Some of these scripts could even be run automatically in a "OnCreateReply"
hook.


Regards, Norbert
-- 
Please post your replies to the news group only. Reply-To is only
temporarily valid and aggressively filtered.
For questions concerning my address please read <http://www.privacy.net>.
Re: [Dialog] Application.Mainform bad behaviour
#146551
Author: Enrico C
Date: Sat, 17 Apr 2004 18:14
13 lines
1900 bytes
In an old post, a few months ago, Marcus Mönnig wrote:

> No. You simply can't use forms in scripts that are called from worker
> threads. They are only available in scripts that are called from the main GUI
> thread.

Yet, I used a form in an OnBeforeSendingMessage script and it seems to
be working!  (??)

-- 
Le FAQ italiane del newsreader 40tude Dialog
http://fido.altervista.org/Dialog/faq.html
http://www.lillathedog.net/dialog/faq.html
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