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

DwtSTextSetMaxLength(3Dwt)												DwtSTextSetMaxLength(3Dwt)

Name
       DwtSTextSetMaxLength - Sets the maximum allowable length of the text string in the simple text widget.

Syntax
       void DwtSTextSetMaxLength(widget, max_length)
	    Widget widget;
	    int max_length;

Arguments
       widget	 Specifies the ID of the simple text widget whose maximum text string length you want to set.

       max_length
		 Specifies  the maximum length of the text string in the simple text widget.  This argument sets the DwtNmaxLength attribute asso-
		 ciated with DwtSTextCreate.

Description
       The DwtSTextSetMaxLength function sets the maximum allowable length of the text in the simple text widget and prevents the user from enter-
       ing text larger than this limit.

See Also
       DwtSText(3Dwt),  DwtSTextGetString(3Dwt),  DwtSTextSetEditable(3Dwt), DwtSTextGetMaxLength(3Dwt), DwtSTextSetSelection(3Dwt), DwtS-
       TextClearSelection(3Dwt), DwtSTextGetSelection(3Dwt)
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

															DwtSTextSetMaxLength(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