[futurebasic] Re: [FB] EDIT FIELD Rect

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 1999 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Mon, 02 Aug 1999 17:50:21 -0700
Love your FN Mel and it is great for doing what you're doing with it; but if
you're going to be moving a lot of edit fields around, methinks you need to KNOW
the rects, not find them; so my previous comment about setting them, maintaining
them and using them still applies - don't you think?

In an instance in which the user makes an EF the current EF by clicking on it,
and you want to do something special with THAT EF, then using TEHANDLE would
certainly be appropriate and probably the ONLY approach, but for moving Edit
Fields around en masse? IMHO!

Joe Wilkins

Mel Patrick wrote:

> Here's a function that draws a 3D effect around an edit field (and
> hence, has to know the RECT to draw around). It looks best if you
> have a PPAT coloured window in the background (like a lot of the
> dialogs you see that use the light grey background).

<editHndl&=TEHANDLE(whichEF):'    get a handle to the specific edit field
<    LONG IF editHndl&:'    sure we got one, it's probably blow up if not fnd
<      CALL RGBFORECOLOR(newFore):'               and reset it on the way out
<     BLOCKMOVE [editHndl&],@rect,8:'               get the destination rect