[comp.windows.x.motif] XmScrollingText edit mode

watson@dev1f.mdcbbs.com (08/31/90)

Greetings,

We're having a problem with Motif 1.0 (DEC VMS) XmScrolledText widgets.  

If widget is a child of a XmDialogShell (such as XmBulletinBoardDialog or 
XmFormDialog), multi-line editing does not work.  Is this a known problem?

A small uil example is included.  Multi-line editing works for the first
instance of Stext only.

thanks,
Catie Watson
McDonnell Douglas Manufacturing & Engineering
Cypress, California

watson@dev1.mdcbbs.com  [or]
uunet!mdcbbs!dev1.mdcbbs!watson
                          
------------------------------------------------------

module text
        version = 'v1.0'
        names = case_sensitive

include file 'XmAppl.uil';                 

object 
 MainWindow: XmForm {   
    controls
    {  	XmScrolledText Stext;
	XmFormDialog {
	    arguments {XmNdialogTitle = "Form";};
	    controls {XmScrolledText Stext;};     
	};                                             
	XmBulletinBoardDialog {
	    arguments {XmNdialogTitle = "B Board";};
	    controls {XmBulletinBoard {controls {XmScrolledText Stext;};};};
	};
    };                                       
};           

object 
 Stext : XmScrolledText {
    arguments {XmNeditMode = XmMULTI_LINE_EDIT;
	XmNrows     = 2;                    
	XmNwordWrap = true;                          
    };
};

end module;