[futurebasic] Re: Re: [FB] Color when first Visible

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

From: BMichael@...
Date: Fri, 16 Jul 1999 22:19:44 EDT
>I was basically trying something similar:
>        CALL SETRECT(wndRect,0,30,626,480)
>        gMessPort& = FN NEWWINDOW(0,wndRect,"",0,_wProc,0,_true,0)
>        CALL SETPORT(gMessPort&)
>        CALL BACKCOLOR(_blackColor)
>        CALL SHOWWINDOW(gMessPort&)
>Even though the backcolor is set in the correct port and before the window
>is visible, it still opens as a white window until I put in a CLS statement.

If you put the CLS _before_ the SHOWWINDOW, it _should_ work... but don't 
forget to set BACKCOLOR to black again at the start of every window