[comp.windows.x.motif] FormDialog and DrawingArea's children

liu9yong@athena.mit.edu (Ji Wu) (07/21/90)

	Hi folks, I got following questions I can't answer, I would
appreciate very much if you could help me:

#1: Of ScrolledWindow widget. I created a scrolledwindow with
drawingarea as it's child, setting the scrollingPolicy to automatic
and scrolledBarDisplayPolicy to as_needed. The scrollbars work fine
with the drawingarea. But once I add a child widget to
drawingarea(say, a button), the scrollbars disappeared, and the
scrolling is no longer functioning. Why is so?

#2: Of FormDialog. I create a Text widget as a child of the widget
returned by XmCreateFormDialog(). I then add a callback to the Text's
activateCallback list. The callback procedure basically gets the value
of the Text, and prints it. This procedure works for the text widgets
created as children of other non-popup widget. But for FormDialog, the
Text simply doesn't respond to <key>return, or, the callback is never
invoked. Do I need to change some resources of the FormDialog in order
for it's text child to invoke activateCallback's?

Yong