[futurebasic] Re: [FB] White Background In Edit Field

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

From: tatewake@... (TJ Grant)
Date: Tue, 17 Nov 1998 21:50:17 -0400
>Um I'm not sure about this, but I think you can change the background color of
>an edit field by simply changing the background color of the window when you
>create the field (using LONG COLOR)
>

actually, I suggest this:

dim oldrec.6
dim newrec.6
call getbackcolor(#@oldrec)
newrec.red% = 65535
newrec.green% = 65535
newrec.blue% = 65535
call rgbbackcolor(#@newrec)
edit field #1,"Test",(10,10)-(100,20),_StatNoFramed
call rgbbackcolor(#@oldrec)

if rgbbackcolor/getbackcolor doesn't work, use rgbforecolor/getforecolor

What you're actually doing is getting the old color, setting the new color,
and then setting it back to the old color. What's nice is that you don't
have to care or keep track of the old color.

HTH


-- TJ Grant (tatewake@...)
Inspired Communications. http://inspired.netstreet.net/
Phone: 407-728-7563