<DIV>
<DIV>
<DIV><BR><BR><B><I>Klaus Major <klaus@major-k.de></I></B> wrote:</DIV>
<DIV><<<<BR>> Is it possible by a command to insert a line just before or after a <BR>> selected ine in a List Field?<BR><BR>Yes, at no extra cost :-)</DIV>
<DIV>>>></DIV>
<DIV> </DIV>
<DIV>i can now ID a Klausi Mausi reply on sight.</DIV>
<DIV><BR><<<<BR>objects used in this example:<BR><BR>fld "list", which will have line selected<BR>(NO multiple hilites, please ;-)<BR><BR>fld "to add", which holds the string to add :-)<BR>can also be a variable, of course...<BR><BR>btn "insert", with one of these scripts:<BR><BR>1. to add a line before the selected line:<BR><BR>on mouseup<BR>put the hilitedlines of fld "list" into hl<BR>if hl = empty then exit mouseup<BR>put fld "to add" & CR before line hl of fld "list"<BR>end mouseUp<BR><BR>2. to add a line after the selected line:<BR><BR>on mouseup<BR>put the hilitedlines of fld "list" into hl<BR>if hl = empty then exit mouseup<BR>put CR & fld "to add" after line hl of fld "list"<BR>end mouseUp<BR><BR>Tested and works ;-)<BR><BR>You might want to use the alt-key to combine<BR>these scripts a la:<BR><BR>if the altkey is down then<BR>## before...<BR>else<BR>## after...<BR>end if<BR>>>></DIV>
<DIV> </DIV>
<DIV>after 'rasslin' (Sie Mittel-europear haben die Kaubois gern, nit?)</DIV>
<DIV>with the user interface for line insertion conundrum, the most</DIV>
<DIV>intuitive approach seems to be mimicking a word processor.</DIV>
<DIV> </DIV>
<DIV>that means trapping for mouseClicks before, on, or after the</DIV>
<DIV>(linked) text on a given line.</DIV>
<DIV>of course you need some spaces before and after</DIV>
<DIV>the text on each line. </DIV>
<DIV>you need to allow for a single mouseClick or a second </DIV>
<DIV>mouseClick bracketing a line.</DIV>
<DIV> </DIV>
<DIV>then you can easily use the data to </DIV>
<DIV>copy, paste, or cut a line. all on an "Edit..."  list button.</DIV>
<DIV>it gets really challenging if the contents of the lineS of text have to be adjusted relationally.</DIV>
<DIV> </DIV>
<DIV>the satisfaction inbuilding a real editor,</DIV>
<DIV>however primitive,  is enormous.</DIV>
<DIV> </DIV>
<DIV>Erik</DIV></DIV></DIV><BR><BR><FONT style="BACKGROUND-COLOR: blanchedalmond" color=blanchedalmond><FONT color=orangered><FONT color=blue>erik@erikhansen.org</FONT>    </FONT><FONT color=darkred>http://www.erikhansen.org</FONT></FONT><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/">SBC Yahoo! DSL</a> - Now only $29.95 per month!