On Mon, Jul 01, 2002 at 11:06:51PM +0000, Mikhael Goikhman wrote:
> On 02 Jul 2002 00:28:53 +0200, Sergio Nasi wrote:
> >
> > On Mon, Jul 01, 2002 at 10:44:29AM +0000, Mikhael Goikhman wrote:
> > >
> > > It would
> > > be nice to have an option to shift an Action button foreground (icon,
> > > text) in +2+2 pixels when pressed. Something like "PressedOffset 2 2".
> > > Maybe I will add this later when I have a time. Any other volunteer?
> >
> > So, since you're seeking for volunteers Mikhael, I can try to hack the
> > fvwm code to get what you're suggesting (got not so much spare time,
> > though)
> >
> > This list is strictly not for developers, but could you try to direct me
> > on the right path?
>
> I suggest to take a look at how "Padding x y" option is implemented and
> implement "PressedOffset x y" (or however you will call it) similarly.
> Searching for "Padding" in FvwmButtons/*.[ch] should be a good start.
>
> You may parse option args using GetIntegerArguments from libs/Parse.c.
> I suggest to make the second integer optional, it may be set to the
> first one if omitted, negative values supported, 0 is the current default.
> If you need more help, don't hesitate to ask on fvwm-workers_at_fvwm.org.
Wait a moment. It *is* possible to change the icon while waiting
for the application already, at least in the latest development
code. We recently hacked something into FvwmButtons that allows
to change the text and icons in a running FvwmButtons. It's a bit
difficult to configure, but it works well. So, you can bind a
function to the button that changes the icon, waits for the app
and restores the old icon:
*FvwmButtons: (Icon foo.xpm, Action Function start_foo_func)
AddToFunc start_foo_func
+ I SendToModule FvwmButtons Icon <button-spec> foobar.xpm
+ I Exec exec foo
+ I Wait foo
+ I SendToModule FvwmButtons Icon <button-spec> foo.xpm
<button-spec> describes which button is changed. It can either be
a column/row pair ("+1+3"). Or a button number (only buttons with
icons count, top left button is #0).
(config untested).
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Mon Jul 01 2002 - 18:27:21 BST