Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsj!cbnewsi!cbnewsh!cbnewse!cbnewsd!rmt From: rmt@cbnewsd.att.com (richard.m.thomas) Newsgroups: comp.windows.open-look Subject: Re: Using pixmaps in OPENLOOK buttons Keywords: OPENLOOK pixmaps Message-ID: <1991Apr9.211804.8861@cbnewsd.att.com> Date: 9 Apr 91 21:18:04 GMT References: <284@trwacs.UUCP> Organization: AT&T Bell Laboratories Lines: 30 In article <284@trwacs.UUCP> langager@trwacs.UUCP (Mike Langager) writes: >Hi, > > I am in the process of converting a Motif based application to use >the OLIT widget set provided by Sun with Openwindows 2.0. In my Motif >version, I use the XtNlabelImage resource to have a pixmap image displayed >in a button. When I try the same thing in an oblong button widet in >OLIT, nothing happens. Can this be done in OLIT? Will it be supported in >a future release? Thanks in advance. > > -- Mike > >----------------------------------------------------------------------------- >Mike Langager UUCP: uunet!trwacs!langager >TRW Systems Division Internet: langager@trwacs.fp.trw.com >Fairfax Virginia Voice: +1 703/968-1846 >-------------------------------------------------------------------------- With OLIT, XtNlabelImage is a value of data-type *XImage rather than Pixmap. Use XGetImage to create an XImage from your Pixmap, then use the returned XImage* as the resource value for your button. ---------------------------------------------------- Rick Thomas rmt@attunix.att.com UNIX System Laboratories Summit, NJ 908-522-6109 ----------------------------------------------------