[futurebasic] [FB^3] TeNew

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

From: Pete <furbies@...>
Date: Fri, 09 Nov 2001 17:37:46 +1100
I'm trying to manually create an edit field in a project using the
UltrraLite Runtime.

So far:
I can create the ef (TeNew)
I can route keystrokes to the edit field (TeKey)
handle TeUpdate (sort of)
handle TeIdle (sort of)

my problem is that the rect I specified for the edit field is all screwy.

I specify the rect where I want the edit field to appear when I do TeNew:
gCompWTimesEfH = FN tenew(myRect, myRect)

myRect is the rect where in the window I want the edit field to be.
myRect appears to be correct cause if I do a FrameRect using myRect the rect
is in the right place on the window.

and:

if I don't manually re-specify the rect manually each time I TeUpdate,
TeUpdate fails

but if I specify the rect TeUpdate works fine:
    gCompWTimesEfH..viewRect = myRect
    gCompWTimesEfH..destRect = myRect
    TeUpdate(gCompWTimesEfH..viewRect, gCompWTimesEfH)

Can anyone give me ideas about what I'm doing wrong ?


-- 
Pete...                     (the other one)