Thread View: news.software.readers
4 messages
4 total messages
Started by Paul Walton
Mon, 10 Nov 2003 21:23
[Dialog] Scripts and buttons
Author: Paul Walton
Date: Mon, 10 Nov 2003 21:23
Date: Mon, 10 Nov 2003 21:23
14 lines
1311 bytes
1311 bytes
Does anyone know how to set a button attached to a script as "down" (like the online button)? I've a script that runs on a timer that is attached to a button. I'd like the button to be down to indicate that the script is running. Any ideas? tia. Regards, -- Paul Walton West Midlands, UK
Re: [Dialog] Scripts and buttons
Author: Alain GUERIN
Date: Tue, 11 Nov 2003 22:53
Date: Tue, 11 Nov 2003 22:53
29 lines
2181 bytes
2181 bytes
Hello, On Mon, 10 Nov 2003 21:23:00 +0000, Paul Walton wrote: > Does anyone know how to set a button attached to a script as "down" (like > the online button)? > > I've a script that runs on a timer that is attached to a button. I'd like > the button to be down to indicate that the script is running. > > Any ideas? > I am not sure I understand your problem. If it is how to have a button on the task bar that runs a script, here is the answer: Attach an icon to your script in the scripting window, with the icon listbox. Go back to Dialog main windows and right click on the task bar (configure buttons/shortcuts), then search your script in scripts, select it and drag and drop it on the task bar. HTH. -- A.G.
Re: [Dialog] Scripts and buttons
Author: Paul Walton
Date: Tue, 11 Nov 2003 23:35
Date: Tue, 11 Nov 2003 23:35
44 lines
2593 bytes
2593 bytes
On Tue, 11 Nov 2003 23:53:11 +0100, Alain GUERIN wrote: > Hello, > > > On Mon, 10 Nov 2003 21:23:00 +0000, Paul Walton wrote: > >> Does anyone know how to set a button attached to a script as "down" (like >> the online button)? >> >> I've a script that runs on a timer that is attached to a button. I'd like >> the button to be down to indicate that the script is running. >> >> Any ideas? >> > > I am not sure I understand your problem. If it is how to have a button on > the task bar that runs a script, here is the answer: > > Attach an icon to your script in the scripting window, with the icon > listbox. > > Go back to Dialog main windows and right click on the task bar (configure > buttons/shortcuts), then search your script in scripts, select it and drag > and drop it on the task bar. > > HTH. Thanks for the reply. I have a button that toggles the enable state of timer1. If timer1 is enabled it periodically gets new headers. So clicking the button enables timer1 thus downloading headers every 5 minutes until the button is pressed again (when timer1 is disabled). I'm looking for an indication that the timer script is active. Currently I'm changing the form heading to "40tude Dialog - Autodownloading" but I'd like the button to remain depressed just like the online button does when Dialog is online. Regards, -- Paul Walton West Midlands, UK
Re: [Dialog] Scripts and buttons
Author: Alain GUERIN
Date: Wed, 12 Nov 2003 00:24
Date: Wed, 12 Nov 2003 00:24
25 lines
2332 bytes
2332 bytes
Hello, On Tue, 11 Nov 2003 23:35:47 +0000, Paul Walton wrote: > I'm looking for an indication that the timer script is active. Currently > I'm changing the form heading to "40tude Dialog - Autodownloading" but I'd > like the button to remain depressed just like the online button does when > Dialog is online. > I was far from your problem :-/ I have the same problem and I did not find anything else than writing to log so the message ON or OFF is shown in the status bar. But your solution (windows name change) is better than mine. I tried to change the icon name in script.ini and reload the scripts: does not work. Dialog itself must be reloaded. I tried a 40x20 icon with both images as glyphes in Delphi; it failed too. -- A.G.
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