DwtSTextSetSelection(3Dwt)DwtSTextSetSelection(3Dwt)Name
DwtSTextSetSelection - Makes the specified text in the simple text widget the current global selection and highlights it in the simple text
widget.
Syntax
void DwtSTextSetSelection(widget, first, last, time)
Widget widget;
int first, last;
Time time;
Arguments
widget Specifies the widget ID.
first Specifies the first character position of the selected string.
last Specifies the last character position of the selected string.
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 DwtSTextSetSelection function makes the specified text in the simple text widget the current global selection and highlights it in the
simple text widget. Within the text window, first marks the first character position and last marks the last position. The field charac-
ters are numbered in sequence starting at 0.
See AlsoDwtSText(3Dwt), DwtSTextGetString(3Dwt), DwtSTextSetEditable(3Dwt), DwtSTextGetMaxLength(3Dwt), DwtSTextGetMaxLength(3Dwt), DwtS-
TextGetSelection(3Dwt), DwtSTextClearSelection(3Dwt)
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtSTextSetSelection(3Dwt)
I know that this my be really simple, but I'm having a hard time accomplishing it. I am trying to add a new line of text after finding a particular string of text in a file. Here's what I'm getting:
sed: command garbled: N/search_string/\\new_text/
I was using "N" to add a line after the... (3 Replies)
I have what I believe is a simple programming question. I have a text file that looks like:
mol 1 G:\stereo01.hin
block text
...
...
...
endmol 1
However, I would like a file that repeats this entire block of text several times over. The lines of text in the middle remain the same for each... (2 Replies)
Hi guys, got an issue with a relatively simple bit of awk but stumping me. Want this to run on several different lines. The first is:
INPUT="<Cell ss:StyleID="s70"><Data ss:Type="String">ND</Data></Cell>"
echo $INPUT | awk 'NR==1022' | awk '/String">/,/</'Gives me no output atm.
The output... (3 Replies)
Hi unix masters,
Im needing some guidance or a small code to enlight my problem.
Problem Example:
I have 3 different text ascii files. At each file, inside the text
have repeater marks.
--text 1 start--
123 -> mark
anytextanytext
anythinganything
123 ->mark
blahblah
blah
...... (6 Replies)
Hi Guys,
I am trying to put together a script that will search a txt file for a timestamp and select all text after the initial one up to EOF but the timestamp searched for will depend on the current date
So if it the current time is between 0600 and 0700 the script will search a text file... (7 Replies)