Drawing on ForeLayer flashes with refresh.

tsdt

Active Member
Licensed User
Hi,

I was looking at the problem on this and I found that this problem has been highlighted since 2007 in the wishlist. Guess it is not being solved ever since or is there anyway, I can over come this?

My Code:
======
Sub FmPatternDraw_MouseMove (x,y)

TmPatternDraw.Enabled = False

FmPatternDraw.FLine(xLoc1,yLoc1,xLoc2,yLoc2,220,220,220)
xLoc2 = x
yLoc2 = y
FmPatternDraw.FLine(xLoc1,yLoc1,xLoc2,yLoc2,cBlack)

' Without this line of code, the drawing of forelayer for formsize 480x800, is really bad. With this line, it caused a lot of flashing on the formsize. Any idea??
FmPatternDraw.Refresh <<<< This cause the screen to flash.

xLoc1 = xLoc2
yLoc1 = yLoc2
End Sub

:icon_clap:
 
Last edited:

sitajony

Active Member
Licensed User
I don't understand what do you mean by "is really suck" and "lot of flashing"?
If you draw on the ForeLayer, I'm not sure but your draw disappears, maybe the flashing come form here...
Sorry I can't help you anymore...
 

tsdt

Active Member
Licensed User
I don't understand what do you mean by "is really suck" and "lot of flashing"?
If you draw on the ForeLayer, I'm not sure but your draw disappears, maybe the flashing come form here...
Sorry I can't help you anymore...

Hi.. Sorry, I dont mean to be rude when I said that. Anyway, I mean it is really bad.. If I dont have that line, when I started to draw on the forelayer, it is not even drawing a proper line but, a lot of broken pieces. However, if I refresh it (by shutting down and up), then, the whole drawing appears. So, I would have guessed that it is caused by refresh. Then, I add the refreshing line in, then, I got the whole drawing flickle like mad everytime I draw.

Strangely, when I use other resolution, it is ok, except this resolution.

Any idea?
:icon_clap:
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…