XmTextFieldPosToXY(3X)XmTextFieldPosToXY(3X)NAME
XmTextFieldPosToXY - A TextField function that accesses the x and y position of a character position
SYNOPSIS
#include <Xm/TextF.h>
Boolean XmTextFieldPosToXY (widget, position, x, y)
Widget widget;
XmTextPosition position;
Position *x;
Position *y;
DESCRIPTION
XmTextFieldPosToXY accesses the x and y position, relative to the upper left corner of the TextField widget, of a given character position
in the text buffer. Specifies the TextField widget ID Specifies the character position in the text for which the x and y position is
accessed. This is an integer number of characters from the beginning of the buffer. The first character position is 0. Specifies the
pointer in which the x position, relative to the upper left corner of the widget, is returned. This value is meaningful only if the func-
tion returns True. Specifies the pointer in which the y position, relative to the upper left corner of the widget, is returned. This
value is meaningful only if the function returns True.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
RETURN VALUE
This function returns True if the character position is displayed in the TextField widget; otherwise, it returns False, and no x or y value
is returned.
SEE ALSO XmTextField(3X)XmTextFieldPosToXY(3X)
Check Out this Related Man Page
XmTextFieldPosToXY(library call) XmTextFieldPosToXY(library call)
NAME
XmTextFieldPosToXY -- A TextField function that accesses the x and y position of a character position
SYNOPSIS
#include <Xm/TextF.h>
Boolean XmTextFieldPosToXY(
Widget widget,
XmTextPosition position,
Position *x,
Position *y);
DESCRIPTION
XmTextFieldPosToXY accesses the x and y position, relative to the upper left corner of the TextField widget, of a given character position
in the text buffer.
widget Specifies the TextField widget ID
position Specifies the character position in the text for which the x and y position is accessed. This is an integer number of characters
from the beginning of the buffer. The first character position is 0.
x Specifies the pointer in which the x position is returned. The returned position is the distance from the left side of the wid-
get to the left border of the character. This value is meaningful only if the function returns True.
y Specifies the pointer in which the y position is returned. The returned position is the distance from the top of the widget to
the character's baseline. This value is meaningful only if the function returns True.
For a complete definition of TextField and its associated resources, see XmTextField(3).
RETURN
This function returns True if the character position is displayed in the TextField widget; otherwise, it returns False, and no x or y value
is returned.
RELATED XmTextField(3).
XmTextFieldPosToXY(library call)
Hi,
I have an urgent task here. I am required to sort a flat file based on multiple columns which are based on the character position in that line. I am restricted to use the character position instead of the space and sort +1 +2 etc to do the sorting.
I understand that there is a previous... (8 Replies)
Hi All,
I have a file of the format :
idsfskjvfdznvdfjvh
ierwjfkncmvlkmc
xszkmdvnosndzjndf
weuhrndzierfncv
rndsjnsllshens
iernzkfndslkdhf
zkinewfinfvlkmvd
I wish to count the occurrences of character 'z' in the file.
I also need to find out the position of 'z' in various lines.
and... (3 Replies)
Hi All
I want to replace a character in a line, but position will be different form one iteration to another.
So i m keeping the position i a variable.
I am trying with following code
pos=3
echo "Hello World, Good Morning" | sed 's/\(.\{$pos\}\)./\1Y/'
But its not working, Can you... (2 Replies)
Hi
I'm trying to use awk in a file(test123.dat).
My requirement is to to check for the 65th position, if the 65th position is a space then replace the 65th position by the number 9.
This is the code that i used:
awk '{substr($0,65,1) ~ / / }{sub(substr($0,65,1),"9")}{print}' test123.dat
... (7 Replies)
Hello
I want to add some value at the specific position.
My file has data like
Hello
Welcome to UNIX Forums
Need Assistance
I want to add some value at the end but at same character position for all lines.
I want my output file to have data like :
Here '_' represents blanks.... (3 Replies)
I want to remove text from nth position to nth position couple of times in same line
my line is
"hello is there anyone can help me with this question"
I need like this
ello is there anyone can help me with question
'h' is removed and 'this' removed from the line. I want to do this... (5 Replies)
Hello. I'm trying to delete one character in determinate position.
Example:
qwEtsdf123Ecv34
<delete character in positión 3>
Result:
qwtsdf123Ecv34
Plase, help me.
Thanks (4 Replies)
hi ,
i am having a file
Full_ARTMAS_20110510152425.xml in my local directory. i wanted to extract the character at the 35143546 th position at line 1 of this file.Can any body help me how to do it???
regards
Anjali (2 Replies)
Hi all
let's say i have a file named 1234_v2_abcd
i need to find the position of the character located after _v, in above case this would be character number 2
the count of the characters before _v can change, but i always have a number after _v
can anybody help :) (4 Replies)
Hi,
i want find the character '-' in a file from position 284-298, if it occurs i need to replace it with 'O ' for the position in the file. How to do that using SED command.
thanks in advance,
Sara (9 Replies)
hi guys,
i want command or script to display the content of file from 2nd position to last but one position of a file
abcdefghdasdasdsd
123,345,678,345,323
434,656,656,656,656
678,878,878,989,545
4565656667,65656
i want to display the same above file without first and... (2 Replies)
Hi, im still new in unix.
i want to ask how to delete character on specific position in line, lets say i want to remove 5 character from position 1000, so characters from position 1000-1005 will be deleted.
i found this sed command can delete 4 characters from position 10, but i dont know if... (7 Replies)
I am on AIX.
I need to use AWK to split the source file based on a character at a certain position.
Position 75 with a value of 'R' should go in one output file and the rest should go in another file.
I need proper names for the output files.
Source FileName : abc_xyz_pqr_a_1_yymmdd... (15 Replies)