On 17/08/2014 11:55, Thomas Adam wrote:
On Sun, Aug 17, 2014 at 11:50:28AM +0100, Jamie Griffin wrote:
Thanks for explaining that. So, say I create a function for it rather than
starting the script in the startfunction, when I define the particular
button i reference the function to get the text like this:

*Foo: 1x1, Id MyButton, Title MyDateFunction)

Would that do it, do you think?
Are you referring to something like this (assuming FvwmButtons has
already been started):

DestroyFunc SomeFunc
AddToFunc   SomeFunc
+ I SendToModule Foo ChangeButton MyButton Title $*

SomeFunc This is the text I want in the button called 'MyButton'

That would also work, yes.  Assuming that's what you meant.

-- Thomas Adam

Yeah that's it. The other thing I just thought of, is as I only want the current day number and month, I don't need the text to be updated during the existence of the fvwmbuttons dock; so, when it starts, the command in the function is run to get the day/month and set in the button so i'm assuming that wouldn't exhaust piperead so much. Do you think, then, using piperead might be better?

Reply via email to