FVWM: A little help with button styles

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Mon, 15 Nov 1999 16:42:33 -0500

I've worked on this a while, I guess I need someone else to look at it.

I'd like to build a web page that illustrates what can be done with
vector buttons. I'd like to do that by creating a window with 10
vector buttons on it and them grabbing its image. I have driver like
this:

# Test bed for vector buttons:
DestroyFunc button_demo
AddToFunc button_demo
+ I 10_buttons
+ I Style "button_demo_style" UseDecor $0
+ I Exec xv -name button_demo_style -geometry 155x100

# -- Start of 10 button layout --
DestroyFunc 10_buttons
AddToFunc 10_buttons
+ I Style "button_demo_style" NoButton 1, NoButton 2, NoButton 3
+ I Style "button_demo_style" NoButton 4, NoButton 5, NoButton 6
+ I Style "button_demo_style" NoButton 7, NoButton 8, NoButton 9, NoButton 10
+ I Style "button_demo_style" Button 1, Button 2, Button 3
+ I Style "button_demo_style" Button 4, Button 5, Button 6
+ I Style "button_demo_style" Button 7, Button 8, Button 9, Button 10
+ I Mouse 0 1 A "Iconify"
+ I Mouse 0 3 A Nop
+ I Mouse 0 5 A Nop
+ I Mouse 0 7 A Nop
+ I Mouse 0 9 A Nop
+ I Mouse 0 2 A Nop
+ I Mouse 0 4 A Nop
+ I Mouse 0 6 A Nop
+ I Mouse 0 8 A Nop
+ I Mouse 0 10 A Nop

DestroyDecor DecorDemo1
AddToDecor DecorDemo1
+ TitleStyle Centered
+ TitleStyle Height 40
+ TitleStyle (Solid blue -- Flat)
+ ButtonStyle Reset
+ ButtonStyle 1 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 2 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ ButtonStyle 3 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 4 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ ButtonStyle 5 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 6 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ ButtonStyle 7 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 8 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1
+ ButtonStyle 9 5 25x25_at_1 25x75_at_1 75x75_at_0 75x25_at_0 25x25_at_1
+ ButtonStyle 10 5 45x45_at_1 55x45_at_1 55x55_at_0 45x55_at_0 45x45_at_1

I then invoke this by entering the command:

button_demo DecorDemo1

So far, I have 2 problems:

I normally have pixmaps on some of my buttons. The above logic
doesn't remove them. I end of with some of the buttons on the new
window still showing pixmaps.

The above affects all newly created windows, not just the ones
that match the style "DecorDemo1".

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214             E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854                       Phone: (732) 699-5570
--
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 Nov 15 1999 - 15:43:47 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST