XmTextSetSource(3X)XmTextSetSource(3X)NAME
XmTextSetSource - A Text function that sets the source of the widget
SYNOPSIS
#include <Xm/Text.h>
void XmTextSetSource (widget, source, top_character, cursor_position)
Widget widget;
XmTextSource source;
XmTextPosition top_character;
XmTextPosition cursor_position;
DESCRIPTION
XmTextSetSource sets the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in
another. This function sets the source of one widget so that it can share the source of another widget.
Setting a new text source destroys the old text source if no other Text widgets are using that source. To replace a text source but keep it
for later use, create an unmanaged Text widget and set its source to the text source you want to keep. Specifies the Text widget ID Speci-
fies the source with which the widget displays text. This can be a value returned by the XmTextGetSource(3X) function. If no source is
specified, the widget creates a default string source. Specifies the position in the text to display at the top of the widget. This is an
integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the position in the text
at which the insert cursor is located. This is an integer number of characters from the beginning of the text buffer. The first character
position is 0.
For a complete definition of Text and its associated resources, see XmText(3X).
SEE ALSO XmText(3X)XmTextSetSource(3X)
Check Out this Related Man Page
XmTextSetSource(library call) XmTextSetSource(library call)
NAME
XmTextSetSource -- A Text function that sets the source of the widget
SYNOPSIS
#include <Xm/Text.h>
void XmTextSetSource(
Widget widget,
XmTextSource source,
XmTextPosition top_character,
XmTextPosition cursor_position);
DESCRIPTION
XmTextSetSource sets the source of the Text widget. Text widgets can share sources of text so that editing in one widget is reflected in
another. This function sets the source of one widget so that it can share the source of another widget.
Setting a new text source destroys the old text source if no other Text widgets are using that source. To replace a text source but keep
it for later use, create an unmanaged Text widget and set its source to the text source you want to keep.
widget Specifies the Text widget ID.
source Specifies the source with which the widget displays text. This can be a value returned by the XmTextGetSource(3) function. If no
source is specified, the widget creates a default string source.
top_character
Specifies the position in the text to display at the top of the widget. This is an integer number of characters from the begin-
ning of the text buffer. The first character position is 0 (zero).
cursor_position
Specifies the position in the text at which the insert cursor is located. This is an integer number of characters from the begin-
ning of the text buffer. The first character position is 0 (zero).
For a complete definition of Text and its associated resources, see XmText(3).
RELATED XmText(3).
XmTextSetSource(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 that has text in the format below
/users/test/krachel/
! Some text
! Some Text
/user/test/limo
! some text
! some text
! Some text
/user/test/krachel
! Some text
How can I seperate the text between a pair of '/users/test/' into seperate files ???
any information... (11 Replies)
Hello all:
I have a following textfile data with name inst1.txt
HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|H|5464-1|0|02-02-2008|02-03-2008||||F|||||||||
DTL|D|5464-1|1|02-02-2008|02-03-2008|1||JJJ
DTL|D|5464-1|2|02-02-2008|02-03-2008|1||JJJ... (9 Replies)
I have one text file which is result of bdf command that have 6 fields separated by space and I want to add one new column in the beginning which is the name of the server because I have to insert whole thing into oracle table consisting of 7 fields
THis is not a complete list but it looks... (9 Replies)
Hello,
I must replace all occurences of 0a character in a text file with 2 characters 0d0a. I've tried sed, but it cannot insert control characters ie. \n \r - it simply writes \n \r into output file. What is the good solution for my problem? I use ksh and AIX 5.3 operating system.
Tia
Yac (8 Replies)
Hi,
How can I remove the line beak in the following case if the line begin with the special char “;”?
TEXT
Text;text
;text
Text;text;text
I want to convert the text to:
Text;text;text
Text;text;text
I have already tried to use... (31 Replies)
Hi guys! I am very much new to UNIX...and I was just wondering on how you would display this text format in UNIX with only just one command :
Text 1
Text 2
Text 3
Texts are in aligned vertically in such format...Thanks for your help :) (8 Replies)
Hi
I need to create multiple text files from onc text file on AIX. The data of text files is as below:
**********************************************
**********************************************
DBVERIFY: Release 10.2.0.4.0 - Production on Tue Nov 10 13:45:42 2009
Copyright (c) 1982,... (11 Replies)
I now have a 230,000+ lines long text file formatted in segments like this:
Is there a way to sort this file to have everything in chronological order, based on the date and time in the text? In this example, I would like the result to be: (19 Replies)
Hey Guys,
Does anyone know how to count the separate amount of words in a text file?
e.g
the 5
and 20
Furthermore does anyone know how to convert whole numbers in decimals?
Thanks (24 Replies)
I have a file that has some text that looks like this
Some Text
1. More text
2. Different text
Final Text
I would like the remove the lines of text that start with the numbers.
Some Text
Final Text
I have tried to use cat file.txt | grep -Ev 1. >... (9 Replies)
Hello,
first, I apologize if this is trivial or in the wrong place. I'm new to all of this and I don't know how everything works.
I was wondering if I could get some tips on text redirection. What I want to do is to take some characters from a file and input them in another one. More... (9 Replies)
I want to insert "Text" in each file as a place where I mentioned below "Insert Text Here". These files are something like news of newspaper. Generally, newspaper headlines contain one or two lines.
I don't know how it can be identified whether Text is inserted after first line or second line.
... (10 Replies)