[futurebasic] Re: [FB] EDIT FIELD flashes in a colored window

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Sun, 18 May 2003 03:10:19 -0500
>Jay,
>I use RGBbackColor which I think is the same as LONGCOLOR b,g,r,0
>
>Alain,
>You are right that it happens in the runtime. I put a 3 sec delay in the
>window update section as shown in the snippet below. (The screen stays white
>for 3 secs.)

Barrie,

I still don't believe the problem is in the runtime. Below is a brief
demo. Do you see any flash when you run it? I have a moderately fast
machine, so that may be masking it, but it looks smooth as silk when
I run it here. Check on the sequence of building window, setting
colors, creating EF. Sure it's great to have a hackable runtime, but
if it ain't broke... :-)

  e-e
  =J= a  y
   "

dim as rgbcolor backRGB,foreRGB
dim r as rect
dim i
foreRGB.red   = &FFFF 'Red text
//backRGB.green = &FFFF 'unREM for Green background

setrect(r, 0, 0, 500, 200)
window 1, "EF on colored BG", @r
RGBbackColor(backRGB)
cls
rgbforecolor(foreRGB)
for i = 1 to 5
edit field -1, "Watch for flashŠ", (50,50)-(450, 100), _statnoframed,
_centerjust
setselect 0, 99
edit text #1,_sysfont,40,_boldbit%¬
//,,foreRGB, backRGB 'unREM for appearance runtime
delay 1000
edit field close 1
delay 1000
next
end