Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmcreatescrolledtext(3x) [osf1 man page]

XmCreateScrolledText(3X)												  XmCreateScrolledText(3X)

NAME
XmCreateScrolledText - The TextScrolledText convenience creation function SYNOPSIS
#include <Xm/Text.h> Widget XmCreateScrolledText (parent, name, arglist, argcount) Widget parent; String name; ArgList arglist; Cardinal argcount; DESCRIPTION
XmCreateScrolledText creates an instance of a Text widget that is contained within a ScrolledWindow. All ScrolledWindow subarea widgets are automatically created by this function. The ID returned by this function is that of the Text widget. Use this ID for all normal Text operations, as well as those that are relevant for the ScrolledText widget. The Text widget defaults to single-line text edit; therefore, no ScrollBars are displayed. The Text resource XmNeditMode must be set to XmMULTI_LINE_EDIT to display the ScrollBars. The results of placing a Text widget inside a ScrolledWindow when the Text's XmNeditMode is XmSINGLE_LINE_EDIT are undefined. All arguments to either the Text or the ScrolledWindow widget can be specified at creation time using this function. Changes to initial position and size are sent only to the ScrolledWindow widget. Other resources are sent to the Text or the ScrolledWindow widget as appro- priate. This function forces the following initial values for ScrolledWindow resources: XmNscrollingPolicy is set to XmAPPLICATION_DEFINED. XmNvi- sualPolicy is set to XmVARIABLE. XmNscrollBarDisplayPolicy is set to XmSTATIC. XmNshadowThickness is set to 0. To obtain the ID of the ScrolledWindow widget associated with the ScrolledText, use the Xt Intrinsics XtParent function. The name of the ScrolledWindow created by this function is formed by concatenating the letters SW onto the end of the name specified in the parameter list. Specifies the parent widget ID Specifies the name of the created widget Specifies the argument list Specifies the number of attribute/value pairs in the argument list (arglist) For a complete definition of Text and its associated resources, see XmText(3X). RETURN VALUE
Returns the Text widget ID. SEE ALSO
XmScrolledWindow(3X), XmText(3X) XmCreateScrolledText(3X)

Check Out this Related Man Page

XmScrolledWindowSetAreas(library call)									    XmScrolledWindowSetAreas(library call)

NAME
XmScrolledWindowSetAreas -- A ScrolledWindow function that adds or changes a window work region and a horizontal or vertical ScrollBar wid- get to the ScrolledWindow widget SYNOPSIS
#include <Xm/ScrolledW.h> void XmScrolledWindowSetAreas( Widget widget, Widget horizontal_scrollbar, Widget vertical_scrollbar, Widget work_region); DESCRIPTION
XmScrolledWindowSetAreas adds or changes a window work region and a horizontal or vertical ScrollBar widget to the ScrolledWindow widget for the application. Each widget is optional and may be passed as NULL. This function is obsolete and exists for compatibility with other releases. Use the XmNscrolledWindowChildType resource of XmScrolledWindow instead. widget Specifies the ScrolledWindow widget ID. horizontal_scrollbar Specifies the ScrollBar widget ID for the horizontal ScrollBar to be associated with the ScrolledWindow widget. Set this ID only after creating an instance of the ScrolledWindow widget. The resource name associated with this argument is XmNhorizontalScroll- Bar. vertical_scrollbar Specifies the ScrollBar widget ID for the vertical ScrollBar to be associated with the ScrolledWindow widget. Set this ID only after creating an instance of the ScrolledWindow widget. The resource name associated with this argument is XmNverticalScrollBar. work_region Specifies the widget ID for the work window to be associated with the ScrolledWindow widget. Set this ID only after creating an instance of the ScrolledWindow widget. The attribute name associated with this argument is XmNworkWindow. For a complete definition of ScrolledWindow and its associated resources, see XmScrolledWindow(3). RELATED
XmScrolledWindow(3). XmScrolledWindowSetAreas(library call)
Man Page