DwtCSTextSetSelection(3Dwt)DwtCSTextSetSelection(3Dwt)Name
DwtCSTextSetSelection - Highlights the specified text in the compound-string text widget and makes it the current global selection.
Syntax
void DwtCSTextSetSelection(widget, first, last, time)
Widget widget;
int first, last;
Time time;
Arguments
widget Specifies the ID of the compound-string text widget.
first Specifies the first character position of the selected compound-string text.
last Specifies the last character position of the selected compound-string text.
time Specifies the time of the event that led to the call to XSetSelectionOwner. You can pass either a timestamp or CurrentTime.
Whenever possible, however, use the timestamp of the event leading to the call.
Description
The DwtCSTextSetSelection function makes the specified text in the compound-string text widget the current global selection and highlights
it in the compound-string text widget. Within the text window, first marks the first character position and last marks the last position.
The field characters start at 0 and increase sequentially.
See AlsoDwtCSText(3Dwt), DwtCSTextCreate(3Dwt), DwtCSTextReplace(3Dwt), DwtCSTextGetString(3Dwt), DwtCSTextSetString(3Dwt), DwtCSTextGetEd-
itable(3Dwt), DwtCSTextSetEditable(3Dwt), DwtCSTextGetMaxLength(3Dwt), DwtCSTextSetMaxLength(3Dwt), DwtCSTextGetSelection(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtCSTextSetSelection(3Dwt)
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
I have a file where the text might exceed 80 characters. I want to have the maximum text lengths to be 80, and cut text from a space.
I written an awk script below but does not seem to work very well
{
gsub("\t"," ")
$0 = line $0
while (length <= WIDTH) {
line = $0
... (3 Replies)
Hello Unix gurus,
I'm creating this analysis to determine whether the maximum allowable process is nearly reached then alarm the user with it. Can someone please help me on how I can determine the maximum allowable process that a platform can handle? BTW, below are the details that might be... (0 Replies)