[futurebasic] re: Re: [FB] EDIT$ scrolls edit field to top?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2001 : Group Archive : Group : All Groups

From: Michael S Kluskens <mkluskens@...>
Date: Mon, 19 Nov 2001 21:07:20 -0500
At 9:34 PM -0500 11/18/01, Bowerbird@... wrote:
>michael said:
>>    In other words
>
>move the edit field offscreen to do the insertion,
>then move it back onscreen afterwards...
>
>edit field -1,,(3000,3000)-(4000,4000),
>'rem do the insertion
>edit field -1,,(20,20)-(400,400),
>
>also, for repeatedly appending to an edit field,
>i recommend "fn teappend", as follows:
>
>CLEAR LOCAL FN teappend(thefield,thetxt$)
>IF thefield=0 THEN thefield=WINDOW(_efnum)
>AUTOCLIP=0 : thehandle&=TEHANDLE(thefield)
>LONG IF thehandle&
>txtlgth={[thehandle&]+_telength}
>CALL TESETSELECT(txtlgth,txtlgth,thehandle&)
>CALL TEINSERT(@thetxt$+1,LEN(thetxt$),thehandle&)
>END IF
>AUTOCLIP=0
>END FN

Yes, but if you look in the help book "OS-X Supported toolboxes" you 
will find the following:

TEHANDLE: not found
TESETSELECT: not recommended
TEINSERT: not recommended

I'll just stick with TEKEY$ and deal with any OS X problems later.

Actually it looks like all of TextEdit is not recommended for OS X
-- 
Michael Kluskens <mkluskens@...>

Got a question? The answer is "I don't do windows."