Home > Archive > Programming with dBASE > October 2005 > Repaint?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Repaint?
Glenn

2005-10-07, 3:26 am

I have a function which calls another function that changes the colors
of specific entryfields.

class::colorthem("R")
sleep(3)
class::colorthem("C")
sleep(3)
class::colorthem("B")
sleep(3)
return

However, the only one that shows up is the last one. The colorthem
function first cleans out all colors, so the screen should have all
normal (b/w) fields. If I remove that block, the screen in essence
sleeps 9 seconds, then all three are displayed at once. I know this
happens when calling a function from a do..while or for..endfor loop,
but sleep??

Is this a job for repaint, or is there another way of attacking it??

Thanks,

Glenn Fausel

David Stone

2005-10-07, 3:26 am

Glenn wrote:

> Is this a job for repaint,


That's the first thing I'd try...make it part of the colorthem function.

David

Glenn

2005-10-07, 3:26 am

David Stone wrote:
> Glenn wrote:
>
>
>
>
> That's the first thing I'd try...make it part of the colorthem function.
>
> David
>


I did and it worked, but why does this happen?? I call the function, it
should work. I understand that for next loops finish first, then
display, but sleep?? Bug??

Thanks,

Glenn

David Stone

2005-10-07, 3:26 am

Glenn wrote:

> I did and it worked, but why does this happen?? I call the function, it
> should work. I understand that for next loops finish first, then
> display, but sleep?? Bug??


I doubt it's a bug. Probably Windows messaging behavior. Just gotta roll with
it. ;-)

David

Glenn

2005-10-11, 7:27 am

David Stone wrote:
> Glenn wrote:
>
>
>
>
> I doubt it's a bug. Probably Windows messaging behavior. Just gotta roll with
> it. ;-)
>
> David
>

Like a lot of things! Wish there was a list of commads/functions that
cause screen refresh to be delayed. Loops I knew, and now sleep.

Glenn
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com