Changes

Jump to: navigation, search

IOL Functions oop344 20112

4,026 bytes added, 11:03, 19 July 2011
int iol_edit(----)
Finally, if the cursor is at the end of the field, instead of the cursor moving
to the right, instead, the characters are shifted to left.
 
The following table describes what each of the special
keys is required to do:
<table border="2" width="600">
<tr>
<td width="100">
<center><font color="#ff0000"><b>INS</b></font><b></b></center>
</td>
 
<td>Toggles the <b>insert</b>/<b>overstrike</b> mode. If the
mode is <b>insert</b>, the characters typed are inserted into the
string at the current cursor position. If the mode is <b>overstrike</b>,
the character typed overwrites the character at the current cursor position.
The cursor in both cases should be placed one position past the character that was
added. Examples:
 
 
<p>Suppose that the field is as follows (underlined char indicates the
cursor location):&nbsp;
</p><table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">This i<u>s</u> the string</font></tt></td>
</tr>
</table>
<font color="#000000">Suppose the key X is pressed.&nbsp; The following
shows what the different modes would change the field to</font>
<p><font color="#000000">&nbsp;<tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Insert Mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
Overstrike Mode</tt></font>
</p><table border="1" cols="2" width="400">
<tr>
<td><tt><font color="#000000">This iX<u>s</u> the string</font></tt></td>
 
<td><tt><font color="#000000">This iX<u> </u>the string</font></tt></td>
</tr>
</table>
 
</td>
 
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>LEFT</b></font><b></b></center>
</td>
 
<td>Moves the cursor to the left by one character if possible.</td>
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>RIGHT</b></font><b></b></center>
 
</td>
 
<td>Moves the cursor to the right by one character if possible. Note that
the cursor cannot move more than one character past the last character
in the string. The following describes the right most possible location
for the cursor in the following field.
<table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">string ends here_</font></tt></td>
</tr>
</table>
</td>
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>HOME</b></font><b></b></center>
</td>
 
<td><font color="#000000">Moves the cursor to the very beginning of the
string, scrolling the string if necessary.</font></td>
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>END</b></font><b></b></center>
</td>
 
<td>Moves the cursor to one character past the last character in the string,
scrolling if necessary.&nbsp;
<table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">move it past here_</font></tt></td>
 
</tr>
 
</table>
</td>
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>BS</b></font><b></b></center>
</td>
 
<td>Moves the entire field starting at current cursor location one character
to the left if possible. The character just to the left of the cursor is
deleted. Note the positioning of the cursor after the operation. See below for
an example.
<p><font color="#000000">Before</font>
</p><table border="1" cols="1" width="200">
<tr>
 
<td><tt><font color="#000000">The fiel<u>d</u> of text</font></tt></td>
 
</tr>
</table>
 
<p><font color="#000000">After</font>
</p><table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">The fie<u>d</u> of text</font></tt></td>
 
</tr>
</table>
</td>
</tr>
 
<tr>
<td>
<center><font color="#ff0000"><b>DEL</b></font><b></b></center>
</td>
 
<td>Deletes the character at the current cursor location and moves all characters
right of it one character to the left if possible. Note the positioning
of the cursor after the operation. See below for an example.
<p><font color="#000000">Before</font>
</p><table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">The fiel<u>d</u> of text</font></tt></td>
 
</tr>
 
</table>
 
<p><font color="#000000">After</font>
</p><table border="1" cols="1" width="200">
<tr>
<td><tt><font color="#000000">The fiel<u> </u>of text</font></tt></td>
</tr>
</table>
</td>
</tr>
</table>
 
<font color="#ff0000"><b>UNDER NO CIRCUMSTANCES DOES THE FUNCTION CHANGE ANY POSITION
ON THE SCREEN OUTSIDE OF THE FIELD</b></font><b></b>.

Navigation menu