Re: XForms: Getting a disabled pixmapbutton stippled.

From: Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
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 <Jean-Marc.Lasgouttes@inria.fr> :

    >>>>> "Steve" == Steve Lamont <spl@ncmir.ucsd.edu> writes:

    Steve> # To subscribers of the xforms list from Steve Lamont
    Steve> <spl@ncmir.ucsd.edu> :
    >> 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
    me.

    JMarc
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



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