Re: XForms: Getting a disabled pixmapbutton stippled.

From: Jean-Marc Lasgouttes (
Date: Thu Jul 20 2000 - 12:04:52 EDT

  • Next message: Steve Lamont: "Re: XForms: Getting a disabled pixmapbutton stippled."

    # To subscribers of the xforms list from Jean-Marc Lasgouttes <> :

    >>>>> "Steve" == Steve Lamont <> writes:

    Steve> # To subscribers of the xforms list from Steve Lamont
    Steve> <> :
    >> In the process of enhancing the toolbar of LyX, I found myself
    >> unable to cope with the following problem: when some action becomes
    >> impossible for some reason, I'd like to stipple the pixmap
    >> additionally to disabling it (to give visual feedback). I guess
    >> this can be done with the help of masks. What's a good way of
    >> accomplishing this? Does somebody have example code?

    Steve> A quick, "shoot from the hip" suggestion -- why not just load a
    Steve> new stippled Pixmap? That's probably the most straightforward
    Steve> method.

    Indeed. I'd rather generate them automatically, though...

    Steve> Another quick thought -- if you're using Xpm Pixmaps, you might
    Steve> try fiddling with the shapemask. You could use a stippled mask.

    That's what I had in mind, but I absolutely do not understand these
    things :) And since my pixmaps have transparent background, I have two
    masks to merge.

    Steve> These are just quick and dirty ideas. When I get a few minutes
    Steve> to play around, I'll see if I can come up with more concrete
    Steve> suggestions.

    Thanks for trying, anyway :) I was hopig someone would jump in and say
    "oh, yes, I already did it"...

    I was already very pleased to see that xforms handles transparency for

    To unsubscribe, send the message "unsubscribe" to or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Thu Jul 20 2000 - 08:07:42 EDT