Skip to Main Content
Volume 6A: Motif Programming Manual
book

Volume 6A: Motif Programming Manual

by David Brennan, Dan Heller, Paula Ferguson
September 1993
Intermediate to advanced content levelIntermediate to advanced
1014 pages
28h 26m
English
O'Reilly Media, Inc.
Content preview from Volume 6A: Motif Programming Manual
The XmNscrollHorizontal resource controls whether or not a horizontal ScrollBar is displayed. If the resource
is set to False, the ScrollBar is not displayed, but that does not stop text from being displayed beyond the visible
area. In order to have text wrap appropriately, the XmNwordWrap resource must be set to True. When this resource
is set, the Text widget breaks lines at spaces, tabs, and newlines. While line breaking is fine for previewing files and
other output−only Text widgets, you should not enforce such a policy for Text widgets that are used for text editing,
as the user may want to edit wide files.
The XmNscrollVertical resource controls whether or not a vertical ScrollBar is displayed. This resource
defaults to True when a Text widget is created as a child of a ScrolledWindow. The XmNscrollLeftSide and
XmNscrollTopSide resources take Boolean values that control the location of the ScrollBars within the
ScrolledWindow. By default, XmNscrollTopSide is set to False, which causes the ScrollBar to be placed below
the ScrolledWindow. The default value of XmNscrollLeftSide depends upon the value of
XmNstringDirection. These two resources should not be set by the application, but left to users to specify
themselves. The XmNresizeWidth and XmNresizeHeight resources control whether or not a Text widget
should resize itself vertically or horizontally in order to display the entire text stream. Both of the resources default to
False. If XmNresizeWidth is set to True and new text is added ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Volume 7A: XView Programming Manual

Volume 7A: XView Programming Manual

Dan Heller

Publisher Resources

ISBN: 9780596000431