uff05@opal.cs.tu-berlin.de (Unix II ) (03/13/91)
Hello world!
I'm use Motif-Version 1.0 and created a ScrolledWidget in
AUTOMATIC-Mode to scroll the backgroundpixmap of a XmDrawingAreaWidget
which is the workareawidget of the ScrolledWidget.
My problems are: 1) The ScrolledWindow ignores any settings in a
XmFormWidget.
2) The scrollbars aren't working.
3) But if they work, the whole ScrolledWindowWidget
is scrolled.
Any solutions?
The Code follows:
Create_Edit(w)
Widget w; /* w is the XmForm-Widget *./
{
Arg args[12];
int n;
n = 0;
XtSetArg(args[n], XmNrubberPositioning, (XtArgVal) True);n++;
XtSetArg(args[n], XmNbottomAttachment, (XtArgVal) XmATTACH_FORM);n++;
XtSetArg(args[n], XmNrightAttachment, (XtArgVal) XmATTACH_FORM);n++;
XtSetArg(args[n], XmNtopAttachment, (XtArgVal) XmATTACH_WIDGET);n++;
XtSetArg(args[n], XmNtopWidget, (XtArgVal) wmenu);n++;
XtSetArg(args[n], XmNleftAttachment, (XtArgVal) XmATTACH_WIDGET);n++;
XtSetArg(args[n], XmNleftWidget, (XtArgVal) wtools);n++;
XtSetArg(args[n], XmNscrollingPolicy, (XtArgVal) XmAUTOMATIC);n++;
XtSetArg(args[n], XmNscrollBarDisplayPolicy, (XtArgVal) XmAS_NEEDED);n++;
wwork = XmCreateScrolledWindow(w, "ScrolledWindow", args, n);
XtManageChild(wwork);
n = 0;
XtSetArg(args[n], XmNinputCallback, (XtArgVal) NULL);n++;
XtSetArg(args[n], XmNresizePolicy, (XtArgVal) XmRESIZE_NONE);n++;
XtSetArg(args[n], XmNbackgroundPixmap, (XtArgVal) pixmap);n++;
XtSetArg(args[n], XmNheight, (XtArgVal) height);n++;
XtSetArg(args[n], XmNwidth, (XtArgVal) width);n++;
wedit = XmCreateDrawingArea(wwork, "EDIT", args, n);
XtManageChild(wedit);
n = 0;
XtSetArg(args[n], XmNworkWindow, (XtArgVal) wwork);n++;
XtSetValues(wwork, args, n);
...
}
thank's in advance.
P.S: Excuse my english.
bye UFF05