DXmCSTextInsert(3X)DXmCSTextInsert(3X)NAME
DXmCSTextInsert - Inserts new text into the CSText widget.
SYNOPSIS
DXmCSTextStatus DXmCSTextInsert(
Widget widget,
DXmCSTextPosition pos,
XmString value );
PARAMETERS
The identifier (widget ID) of the CSText widget. The logical position at which to insert the new text. The compound string representation
of the text.
DESCRIPTION
The DXmCSTextInsert routine inserts new text into the compound string text widget at the specified logical position, returning the success
or failure of that operation.
RETURN VALUES
A value that represents the status (success or failure) of the insertion operation, as follows:
------------------------------------------------------------
Value Description
------------------------------------------------------------
DXmCSTextStatusEditDone Text was inserted successfully.
DXmCSTextStatusEditError Text was not inserted (failure).
------------------------------------------------------------
DXmCSTextInsert(3X)
Check Out this Related Man Page
DwtCSTextReplace(3Dwt)DwtCSTextReplace(3Dwt)Name
DwtCSTextReplace - Replaces a portion of the current text in the compound-string text widget or inserts some new text into the current text
of the compound-string text widget.
Syntax
void DwtCSTextReplace(widget, from_pos, to_pos, value)
Widget widget;
int from_pos, to_pos;
DwtCompString value;
Arguments
widget Specifies the ID of the compound-string text widget.
from_pos Specifies the first character position of the compound-string text being replaced.
to_pos Specifies the last character position of the compound-string text being replaced.
value Specifies the text to replace part of the current text in the compound-string text widget.
Description
The DwtCSTextReplace function replaces part of the text in the compound-string text widget. Within the widget, positions are numbered
starting at 0 and increasing sequentially. For example, to replace the second and third characters in the text, from_pos should be 1 and
to_pos should be 3. To insert text after the fourth character, from_pos and to_pos should both be 4.
See AlsoDwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEditable(3Dwt), DwtCSTextSetEditable(3Dwt), DwtCS-
TextGetMaxLength(3Dwt), DwtCSTextSetMaxLength(3Dwt), DwtCSTextSetSelection(3Dwt), DwtCSTextGetSelection(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtCSTextReplace(3Dwt)
Hi Folks,
Today hasn't been the best one of my career in IT.
I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them.
At the... (3 Replies)