Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dteditorgetsizehints(3) [hpux man page]

DtEditorGetSizeHints(library call)										DtEditorGetSizeHints(library call)

NAME
DtEditorGetSizeHints -- retrieve sizing information from a DtEditor widget SYNOPSIS
#include <Dt/Editor.h> void DtEditorGetSizeHints( Widget widget, XSizeHints *pHints); DESCRIPTION
The DtEditorGetSizeHints function retrieves the current sizing information from a DtEditor widget, allowing the application to compute appropriate size hints for the window manager. The widget argument specifies the DtEditor widget ID. The pHints argument is a pointer to an XSizeHints structure into which the current sizing information is placed. The fields in this struc- ture do not have to contain any values when it is passed in. Upon successful completion, the DtEditorGetSizeHints function fills in the following fields of the XSizeHints structure: minimum width ( min_width) and height ( min_height); width ( width_inc) and height ( height_inc) increment; and base width ( base_width) and height ( base_height); otherwise, the structure is unchanged. The Flags field is set to: PMinSize | PResizeInc | PBaseSize RETURN VALUE
The DtEditorGetSizeHints function returns no value. EXAMPLES
The following code segment sets the resize increment and minimum window size properties for the application. Widget editor, application_shell; Display display; XSizeHints size_hints; long supplied_return; XGetWMSizeHints(display, XtWindow(application_shell), &size_hints, &supplied_return, XA_WM_NORMAL_HINTS); DtEditorGetSizeHints(editor, &size_hints); XSetWMSizeHints(display, XtWindow(application_shell), &size_hints, XA_WM_NORMAL_HINTS); SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3). DtEditorGetSizeHints(library call)

Check Out this Related Man Page

DtEditorSetInsertionPosition(library call)								DtEditorSetInsertionPosition(library call)

NAME
DtEditorSetInsertionPosition -- set the position of the insert cursor in a DtEditor widget SYNOPSIS
#include <Dt/Editor.h> void DtEditorSetInsertionPosition( Widget widget, XmTextPosition position); DESCRIPTION
The DtEditorSetInsertionPosition function sets the insertion cursor position of the DtEditor widget. The current position of the insertion cursor can be retrieved with DtEditorGetInsertionPosition(3). The last text position of the DtEditor widget can be retrieved with DtEditor- GetLastPosition(3). The widget argument specifies the DtEditor widget ID. The position argument specifies the position of the insertion cursor. This is an integer number of characters from the beginning of the text buffer. The first character position is zero. Values greater than the last position place the cursor at the last position (that is, at the end of the text). For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). RETURN VALUE
The DtEditorSetInsertionPosition function returns no value. SEE ALSO
Dt/Editor.h - DtEditor(5), DtEditor(3), DtEditorGetInsertionPosition(3), DtEditorGetLastPosition(3). DtEditorSetInsertionPosition(library call)
Man Page