ui/motif/text.c

changeset 60
7cd1b8890302
parent 36
e4198fc2ead4
child 63
46a42f0c4f93
equal deleted inserted replaced
59:eb6611be50c7 60:7cd1b8890302
40 //XtSetArg(args[n], XmNeditable, TRUE); 40 //XtSetArg(args[n], XmNeditable, TRUE);
41 //n++; 41 //n++;
42 XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT); 42 XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT);
43 n++; 43 n++;
44 44
45 Widget parent = ct->add(ct, args, &n); 45 Widget parent = ct->prepare(ct, args, &n, TRUE);
46 Widget text_area = XmCreateScrolledText(parent, "text_area", args, n); 46 Widget text_area = XmCreateScrolledText(parent, "text_area", args, n);
47 ct->add(ct, text_area);
47 XtManageChild(text_area); 48 XtManageChild(text_area);
48 49
49 UiTextArea *uitext = ucx_mempool_malloc( 50 UiTextArea *uitext = ucx_mempool_malloc(
50 obj->ctx->mempool, 51 obj->ctx->mempool,
51 sizeof(UiTextArea)); 52 sizeof(UiTextArea));

mercurial