Re: FVWM: Vector Buttons

From: Perry Hutchison <phutchis_at_beaverton.windriver.com>
Date: Thu, 19 Jun 2003 18:11:57 -0700 (PDT)

> I am trying to a "X" as a title bar button to perform the function
> "Delete". So far the only way I can do that is by using vector
> buttons. How are these buttons designed? In the following sample:
>
> ButtonStyle 6 6 20x20_at_1 30x20_at_1 50x40_at_1 70x20_at_1 80x20_at_1 80x30_at_0 60x50_at_0 80x70_at_1 80x80_at_0 70x80_at_0 50x60_at_0 30x80_at_0 20x80_at_0 20x70_at_0 40x50_at_1 20x30_at_0 20x20_at_1
>
> How are the numbers determined/calculated?

For the X effect, I am using this (in 2.2.4):

  Mouse 0 8 A Close
  # Definition looks a bit goofy, but visual is OK. A sensible definition
  # produces bad visual results -- go figure. A pixmap might be better.
  ButtonStyle 8 Vector 14 42x42_at_0 72x73_at_0 13x10_at_0 75x70_at_0 70x75_at_0 8x15_at_0 10x10_at_0 42x42_at_0 75x10_at_0 8x75_at_0 13x80_at_0 75x18_at_0 75x14_at_0 10x78_at_0

I got the numbers by trial and error :)

Yes, 2.2.4 is an old version (came with Red Hat 6.2). I'm not the sysadmin
here, and it works well enough that I haven't agitated to upgrade.
--
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 Jun 19 2003 - 20:14:01 BST

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