ries@venice.SEDD.TRW.COM (Marc Ries) (11/21/89)
We have an application that does what we would like (child inside a parent, and of the same "size"), but results in the following XtToolkit Warnings: Name: hbar <-- this is an internal MOTIF widget, not ours Class: XmScrollbar 1) The specified slider size is less than 1 or greater than the scrollbar maximum value minus the scrollbar minimum value. 2) The specified scrollbar value is greater than the maximum scrollbar value minus the scrollbar slider size. Here is the specific code fragment (the parent has been created with an XtCreateForm() call: case textpane: n=0; XtSetArg(al[n], XmNrightAttachment, XmAttach_FORM); n++; XtSetArg(al[n], XmNleftAttachment, XmAttach_FORM); n++; XtSetArg(al[n], XmNbottomAttachment, XmAttach_FORM); n++; /******* commented out XtSetArg(al[n], XmNscrollBarDisplayPolicy, XmAS_NEEDED); n++; XtSetArg(al[n], XmNscrollingPolicy, XmAUTOMATIC); n++; XtSetArg(al[n], XmNvisualPolicy, XmCONSTANT); n++; commented out **********/ parentspace = (Widget) XmCreateScrolledWindow(parent, (Char *)NULL,al,n); XtManageChild(parentspace); n=0; XtSetArg(al[n], XmNeditable, False); n++; XtSetArg(al[n], XmNeditmode, XmMULTI_LINE_EDIT); n++; XtSetArg(al[n], XmNresizeHeight, True); n++; XtSetArg(al[n], XmNcursorPositionVisible,False); n++; XtSetArg(al[n], XmNsensitive, False); n++; workspace = (Widget) XmCreateText(parentspace, (Char *)NULL,al,n); XtManageChild(workspace); [...] break; IF we uncomment out the commented code (ie., AS_NEEDED, AUTOMATIC, CONSTANT -- the HP MOTIF reference manual seems to say "it should work this way"), the XtToolkit warnings go away, but the child within the parent shows up with (for want of a better description) "inner boarders" [that expand/contract as the text does]: +----------+ +-----------+ |+-----+ | instead of: |text | ||text | | | | |+-----+ | | | +----------+ +-----------+ Bug? Stupidity? Help?!? -- Marc Ries ries@venice.sedd.trw.com (ARPA) somewhere!trwind!venice!ries (UUCP) #include <std.disclaimer>