home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!wupost!cs.uiuc.edu!vela!sglanger
- From: sglanger@vela.acs.oakland.edu (LANGER STEVEN C)
- Subject: Re: Capturing the Close Gadget
- Message-ID: <1993Jan4.225609.17299@vela.acs.oakland.edu>
- Organization: Oakland University, Rochester MI.
- References: <1993Jan4.214038.11505@vela.acs.oakland.edu>
- Distribution: na
- Date: Mon, 4 Jan 1993 22:56:09 GMT
- Lines: 48
-
-
- I've done a little more work with Heller's example. First of
- all, replace the dialog arg in XmAddWMProtocalCallback with
- something of a char nature (ie. "text"). That gets you
- past the compiler.
-
- Then , when the window is created, if you did what I did and
- used XtVaCreateManagedWidget, you'll get the notice that
-
- Warning: Must be a vendor shell.
-
- Hmmm. So I used exactly Heller's code;
- dialog = XmCreateWarningDialog (parent, "notice", args, 2);
-
- and Tada, it worked. But my original purpose was to create a simple
- drawing area. I tried;
-
- dialog = XmCreateDialogShell
- and
- dialog = XmCreateDrawingArea
-
- and these both yielded our friend
- Warning: must be a vendor shell.
-
- Further testing revelas that the only thing (apparently) tha
- IS a recognized vendor shell is
-
- dialog = XmCreateWarningDialog
- and dialog = XmCreateInformationDialog.
-
-
- So my question know is, how can I use (essentially) Hellers example
- for a shell dialog?
-
- -- thanks in advance, steve
-
-
- --
- Steve Langer sglanger@argo.acs.oakland.edu (VMS)
- Oakland University sglanger@vela.acs.oakland.edu (Ultrix)
- ---------------------------------------------------------------------------
- Standard disclaimers apply. In addition, the author makes no guarantees,
- concerning the grammatical accuracy of his writing. Therefore, any ^B's, ^C's,
- midword character additions/deletions and other non-sense which occurs (after
- the work leaves the author's decade old text editor via his decade old Amiga,
- struggles through a local 1200 baud Merit server to be further mauled via the
- remote VAX mail servers) is someone elses problem - namely yours.
- ---------------------------------------------------------------------------
-