[futurebasic] Re: [FB] White Dot on Refresh problem

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

From: Robert Covington <t88@...>
Date: Mon, 21 Jun 1999 10:07:49 -0800
>>> Say I have a loop that paints the window black, then PLOT's some points.
>>> When the loop is done and the program exits from the Menu FN that initiated
>>> it, I get a single white dot at 0,0.
>
>This may be a silly question, but here goes:
>
>Does this still happen if you give your paint rectangle an upper left
>corner of -1,-1?  It could be one of those pixel boundary problems.

Yep, still happens. Can't wait to figure out this one. Kind of a pain to
have to redraw something that hasn't been drawn over to start with.

Somebody try this out and tell me if you get a white dot at the upper left
corner of your window after running the below please.

Robert Covington

'====Tester Program, Gives me a white dot at 0,0 upon return from FN.

LOCAL FN DrawTest
DIM rect.8
DIM x                                 'translate
DIM y
CALL SETRECT(rect,0,0,400,400)
LONG COLOR 0,0,0 'set to black
CALL PAINTRECT(rect)
Delay 600 'proves it isn't paintrect at fault - no white dot so far.
END FN

WINDOW 1,"Test",(0,0)-(400,400) 'test winder.

FN DrawTest 'white dot upon return

DO
HANDLEEVENTS
UNTIL FN BUTTON OR LEN(INKEY$)