Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!kogwy!new1!roger From: roger@zuken.co.jp (Roger Meunier) Newsgroups: comp.windows.x.motif Subject: Re: ErrorDialog--- how do I kill the cancel button? Message-ID: Date: 25 Jul 90 15:23:40 GMT References: <2331@dino.cs.iastate.edu> Sender: news@new1.zuken.co.jp Organization: ZUKEN Inc. Yokohama, JAPAN Lines: 16 In-reply-to: dmartin@cs.iastate.edu's message of 24 Jul 90 18:45:53 GMT In article <2331@dino.cs.iastate.edu> dmartin@cs.iastate.edu (David M. Martin Jr.) writes: >Does anyone know how I can get rid of one of those buttons without >building my own popup? I like the look of the Motif dialog boxes. I >*really* like not having to build my own.. The following code frag (from xmfonts.c) should give you a clue: message_box = XmCreateMessageDialog(...); button = XmMessageBoxGetChild (message_box, XmDIALOG_CANCEL_BUTTON); XtUnmanageChild (button); Motif has a convenience routine (kludge ;-) for everything... -- Roger Meunier @ Zuken, Inc. Yokohama, Japan (roger@zuken.co.jp)