[futurebasic] Re: [FB] background color question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2005 : Group Archive : Group : All Groups

From: Douglas Stemen <dstemen@...>
Date: Mon, 3 Oct 2005 14:43:35 -0400
I display a scrolling list of things with a white background  
(background is defined with LONG COLOR 65535, 65535, 65535, _false).  
Each text row is created with PRINT %(x,y) text$.

I want to alternate background colors so it is easier for the user to  
read each different row. This small routine works:

FOR t%=1 TO whatever%
LONG IF FRAC(t%/2)=0
LONG COLOR 65535, 65535, 40000, _false
CLS LINE
XELSE
LONG COLOR 65535, 65535, 65535, _false
CLS LINE
END IF

PRINT %(x,y) text$(t%)
NEXT t%

However, each time the CLS LINE is read, FB 4.2 immediately changes  
the background color in a rectangle around each button and framed  
edit field in an upper portion of the appearance window which has a  
blue background color (defined with DEF SETWINDOWBACKGROUND 
(@gBackGroundRGB,_ztrue). These buttons and edit fields annoyingly  
flash the different background colors as each CLS LINE is read. When  
the upper portion of the window is refreshed the area around the  
buttons and framed edit fields return to their correct color.

Does anyone have or know of an example of how the background color  
change by line can be implemented?

Thanks,

Doug Stemen