Newsgroups: comp.windows.x.motif
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!pjs
From: pjs@wrl.dec.com (Philip Schneider)
Subject: Re: (none)
Message-ID: <1991Apr19.173116.21610@pa.dec.com>
Sender: news@pa.dec.com (News)
Organization: DEC Advanced Technology Development, Palo Alto, CA
References: <9104182349.AA11355@sjosu1.sinet.slb.com>
Distribution: inet
Date: Fri, 19 Apr 91 17:31:16 GMT
Lines: 69

In article <9104182349.AA11355@sjosu1.sinet.slb.com> santiago@fgssu1.SINet.SLB.COM (Ramon Santiago) writes:
>
>
>In the OSF/Motif Programmer's Reference, page 1-477, it says
>
>	"One additional WorkArea child may be added to the FileSelectionBox
>	after creation."
>
>I would like to add just such a WorkArea child, but in the XmFileSelectionBox
>Resource Set I can not find anything like an XmNworkArea resource.
>
>What I can find is the XmFileSelectionBoxGetChild function to which you
>can set the child parameter to XmDIALOG_WORK_AREA, however, there is no
>corresponding XmFileSelectionBoxSetChild.
>
>In the OSF/Motif Programmer's Guide, page B-10, it states that the
>XmFileSelectionBox can "Controls" an XmWorkArea. I have tried adding
>an XmWorkArea in the Controls list of an XmFileSelectionDialog that was
>created via UIL. I can compile this UIL file with errors or warnings, etc.
>But when I Fetch the XmFileSelectionDialog widget I get 
>
>	Warning: Urm__WCI_LookupClassDescriptor: Couldn't find class
>	 descriptor for class XmCreateWorkArea - MrmNOT_FOUND
>
>and I suspect that this may be because there is no such XmWorkArea widget,
>but also note that on page B-39 there is an XmWorkArea object, but as far
>as I know there is no such object in the Motif Toolkit.
>
>	My specific need is for a third list in the XmFileSelectionBox
>widget. I don't even know if this can be done.
>
>	Anybody got any clues, answers, insights, etc.
>
>Ramon J. Santiago
>Finder Graphics Systems
>A Schlumberger Company
>Corte Madera, CA


   I wondered about this sort of thing when I saw the same quote in
the manual.  It's nice how they tell you that you can add one, but then
offer nary a clue to help you do so.  Pretty lame, by my standards :-(

   Here are a few lines, copped from an application I'm writing, that
add a form widget as a "WorkArea" to an XmFileSelectionBox :


    n = 0;
    fileW = XmCreateFileSelectionBox(parent, "fileW", args, n);
    XtManageChild(fileW);

    n = 0;
    form = XmCreateForm(fileW, "form", args, n);
    XtManageChild(form);


   This works just fine (later on I add stuff to the form widget, so it
actually has some non-zero size, but that is irrelevant to the problem).


- Philip

    

--
Philip J. Schneider			| pjs@atd.dec.com
DEC Advanced Technology Development	| decwrl!pjs
100 Hamilton Avenue			| (415)853-6538
Palo Alto, CA  94301			| 
