I was defining 4Dwm-like buttons.

So a maximise button would look something like this (presuming you have
fixed font, run pine :-))

  #############
  #           ##
  #           ##
  #           ##
  #           ##
  ##############
   #############

I don't find a way to do this properly, since those "offsets" should be a
fixed distance (1 pixel).

I made the following definitions:

ButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
AddButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
AddButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
ButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
AddButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]        
AddButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
ButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
AddButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
AddButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] 47x61@

This works well for a certain title bar size.

I guess I could write a script that calculates theese according to font
size, but it seems a bit teedious.

Is there a better way of doing it?

I would suggest having some option to add an offset to vector definitions.
Like for example:

AddButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
Where (+1 and -1 is offsets). (Note that these doesn't nessesarily give
a portion of the above button, I just made it up...)

//Marcus

--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to