Re: FVWM: How to change the pixmap displayed in a button with FvwmButtons?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Thu, 16 May 2002 21:17:12 +0000

On 16 May 2002 15:31:33 -0400, Francis Litterio wrote:
>
> I'm using FVWM 2.5.1, and I need a way to change the pixmap displayed on
> one of the buttons in FvwmButtons. I suppose I can do:
>
> DestroyModuleConfig FvwmButtons*
>
> and then rebuild the FvwmButtons configuration from scratch, and then do
>
> KillModule FvwmButtons
> Module FvwmButtons
>
> But that seems excessive (not to mention likely to be visually
> disturbing).
>
> Does anyone know of a mechanism to change button pixmaps on the fly
> within FvwmButtons?

Well, in fvwm-2.5.1 it is possible, but not documented yet:

  SendToModule FvwmButtons Title <button-num> <new-title>

Numbering of <button-num> starts from 0. It also may be in +x+y form.
The syntax may be changed later. I would use a bit different syntax:

  SendToModule FvwmButtons Change <button-num> Title <new-title>

Because this syntax would be open for "Add" and "Delete" messages too.

You may dynamically change "Icon" too, just like "Title".

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu May 16 2002 - 16:18:32 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST