Dominik Vogt <fvwm@fvwm.org> writes:
> On Mon, Aug 12, 2002 at 04:07:04PM +0200, Felix Kater wrote:
> > Hi,
> > 
> > I created an xpm file as a new mouse pointer. This works fine. But can
> > you tell me how to define the hotspot?
> > 
> > I guess I should be able do it with a graphics application like the gimp
> > and define it inside the xpm file. But up to now I don't find any
> > command to do it. Could you tell me how you do it?
> 
> I've never found out how to create an xpm with a hotspot.  But you
> can trick fvwm into using the correct hotspot by using a larger
> image and shifting it so that the hotspot is in the middle of the
> picture.  E.g. if your image looks like this:

Heres how to create an XPM with a hotspot (from the XPM docs):

The Values-string is a single  string that must contain four  integers
that correspond to the  width and height of  the pixmap, the number of
colors in the  pixmap, and the number  of characters per  pixel in the
color specification.  The string  can  optionally specify the  hotspot
coordinates   and  the   word  XPMEXT   if   the  pixmap  includes  an
Extensions-string.

The format of the string is as follows:
 width height ncolors cpp [x_hotspot y_hotspot] [XPMEXT]


The hotspot is available to the program thru the XpmAttributes
structure.

-- 
Dan Espen                           E-mail: [EMAIL PROTECTED]
444 Hoes Lane  Room RRC 1C-214      Phone: (732) 699-5570
Piscataway, NJ 08854
--
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