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)); |