DwtSTextSetSelection - Makes the specified text in the simple text widget the current global selection and highlights it in the simple text
void DwtSTextSetSelection(widget, first, last, time)
int first, last;
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.
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-
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
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
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.
I have 3 different text ascii files. At each file, inside the text
have repeater marks.
--text 1 start--
123 -> mark
...... (6 Replies)
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)