XmTextFieldInsert(3X)XmTextFieldInsert(3X)NAME
XmTextFieldInsert - A TextField function that inserts a character string into a text string
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldInsert (widget, position, value)
Widget widget;
XmTextPosition position;
char * value;
DESCRIPTION
XmTextFieldInsert inserts a character string into the text string in the TextField widget. The character positions begin at zero and are
numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the position parameter
must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed
first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the TextField widget ID Specifies the posi-
tion in the text string where the character string is to be inserted Specifies the character string value to be added to the text widget
For a complete definition of TextField and its associated resources, see XmTextField(3X).
SEE ALSO XmTextField(3X), XmTextFieldInsertWcs(3X)XmTextFieldInsert(3X)
Check Out this Related Man Page
XmTextFieldInsert(library call) XmTextFieldInsert(library call)
NAME
XmTextFieldInsert -- A TextField function that inserts a character string into a text string
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldInsert(
Widget widget,
XmTextPosition position,
char * value);
DESCRIPTION
XmTextFieldInsert inserts a character string into the text string in the TextField widget. The character positions begin at 0 (zero) and
are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the position parame-
ter must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first
and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. If the XmNcursorPosition resource is greater than or is the
same value as position, the XmNmotionVerifyCallback is called.
widget Specifies the TextField widget ID
position Specifies the position in the text string where the character string is to be inserted
value Specifies the character string value to be added to the text widget
For a complete definition of TextField and its associated resources, see XmTextField(3).
RELATED XmTextField(3) and XmTextFieldInsertWcs(3).
XmTextFieldInsert(library call)
Hi,
I need a script to read the n° character from a text file.
eg: if the text file contains the line "123456" ,I nedd a command to display the number 4, as an example.
I tried with awk and printf but it seems only works with words separated with spaces, but in this case I have only one word... (15 Replies)
i have a file contains like this:
i want to create a script that will insert a comma "." after the 10th character so it would be look like this
thanks in advance (5 Replies)
Hi All,
I'm writing a script where one of the parameter is a string like:
0011001100
Then I want to do a while loop, according to the value of each character.
Could tell how I can access the value of each character in the string?
Thank you,
Gino (6 Replies)
I just want to add a particular string in text file using shell script
text file format
1 columns-10
2 text=89
3 no<>
4
5 test-9876
6 size=9
string need to insert in 4th line
<switch IP='158.195.2.567' port='5900' user='testc' password='asdfrp' Code='8'>
After inserting the... (8 Replies)
How to extract the last character of a string in bash?
---------- Post updated at 03:56 PM ---------- Previous update was at 03:55 PM ----------
Suppose "abcde" is a string. i want to extract the last character i.e. "e". (1 Reply)
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
... (7 Replies)
Hello. I'm trying to insert text in various positions and I could only do that using pipes for each position.
Example:
cat file | sed -e 's#\(.\{5\}\)\(.*\)#\1:\2#g' | sed -e 's#\(.\{26\}\)\(.*\)#\1:\2#g'
Insert ":" at position 5 and 26.
it can be done in the same sentence, without using... (4 Replies)
I have a string
-----
i want to replace the 3rd '-' with a character
How can i do that
Basically im trying to do hangman
I have added the '-----' string to a file called hash
and i have the character in a variable called $input
also i have the character location(index) in this variable... (12 Replies)
Greetings.
I need to extract text between two character positions, e.g: all text between character 4921 and 6534.
The text blocks are FASTA-format sequence of whole chromosomes, so basically a million A, T, G, C, combinations. E.g:
>Chr_1
ACCTGTTCAACTCTCAGGACTCTCAGGTCAACTCTCAG... (3 Replies)
My server xml file has huge data part of which i'm sharing below.
I wish to add the below text held by variable "addthisline" after the closing braces i.e --> once the first </Connector> tag is found.
addthisline="I need to be inserted after the comments"
Thus my searchstring is... (3 Replies)