Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dwtstextsetselection(3dwt) [ultrix man page]

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 Also
       DwtSText(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)

Check Out this Related Man Page

DwtSTextGetString(3Dwt) 												   DwtSTextGetString(3Dwt)

Name
       DwtSTextGetString - Retrieves the text string from the simple text widget.

Syntax
       char  *DwtSTextGetString(widget)
	    Widget widget;

Arguments
       widget	 Specifies the ID of the simple text widget

Description
       The  DwtSTextGetString  function  returns a pointer to the current string in the simple text widget window.  The application is responsible
       for freeing the storage associated with the string by calling XtFree.

Return Values
       This function returns the pointer to the string currently displayed in the given text widget window.

See Also
       DwtSTextSetString(3Dwt), DwtSTextReplace(3Dwt), DwtSTextGetEditable(3Dwt), DwtSTextSetEditable(3Dwt), DwtSTextGetMaxLength(3Dwt), Dwt-
       STextSetMaxLength(3Dwt), DwtSTextSetSelection(3Dwt), DwtSTextClearSelection(3Dwt), DwtSTextGetSelection(3Dwt)
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

															   DwtSTextGetString(3Dwt)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed.. Add new line after finding text

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)
Discussion started by: douknownam
3 Replies

2. Shell Programming and Scripting

A simple (?) loop

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)
Discussion started by: red baron
2 Replies

3. Shell Programming and Scripting

simple selection between two words

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)
Discussion started by: mikepegg
3 Replies

4. UNIX for Dummies Questions & Answers

Linux novice - Search and delete

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)
Discussion started by: atnoz
6 Replies

5. Shell Programming and Scripting

IF statement dealing with current time

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)
Discussion started by: martin0852
7 Replies