Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!dkuug!modulex!morten From: morten@modulex.dk (Morten Hastrup) Newsgroups: comp.windows.x.motif Subject: Re: invisible/overlay windows? Keywords: hypertext, invisible, overlay, help Message-ID: <707@modulex.dk> Date: 18 Jan 91 11:19:55 GMT References: Organization: A/S MODULEX, Copenhagen, Denmark Lines: 36 connolly@convex.com (Dan Connolly) writes: >I've got a bulletin board widget with a pixmap label in it. >I'd like to put a bunch of pushbuttons over the label, with the >underlying pixmap showing through. >Am I gonna have to resort to Xlib? Yes, The following should work: { XSetWindowAttributes att; XtValueMask mask; /* or unsigned long */ Widget bp; /* push button widget */ ..... pb = XmCreatePushButton(.... mask = 0; mask |= CWBackPixel; att.background_pixmap = ParentRelative; /* this is the solution */ XChangeWindowAttributes(XtDisplay(pb), XtWindow(pb), mask, &att); ..... } Morten ----------------------------------------------------- Morten Hastrup | Email: morten@modulex.dk A/S MODULEX | Phone: +45 44 53 30 11 Lyskaer 15 | Telefax: +45 44 53 30 74 DK-2730 Herlev | Denmark |