Welcome! Log In Create A New Profile

Advanced

Refreshing the windows

Posted by Parianos Henri 
Parianos Henri
Refreshing the windows
March 30, 2009 12:24AM
Hi,

This is for versions of windev 9 and 12.

From time to time and depending on witch computer my applicaion runs, it hapends that some havy screens (I mean with a lot of buttons and graphics (icons or bmps) are not get refreshed properly.
I try all most everthing like multitaskredraw, multitask, etc etc but nothing helps except when i call en other window and got back or when I hovering the mouse then the screen gets refreshed.
Are there out some people with the same problem and if so is there an solutions to the redraw the screen problem.

Regds
Henri Parianos
Louis Verbraak
Re: Refreshing the windows
March 30, 2009 08:46AM
Hello Henri,

Perhaps you can force a mousemove in the initialization of the window. I use something like this:

LOCAL
liMouseXPos is int
liMouseYPos is int
liMouse is int

// Remember original position cursor.
liMouse=CursorPos(cpScreen)
liMouseXPos=LoWord(liMouse)
liMouseYPos=HiWord(liMouse)
//// Move cursor outside screen.
//liMouse=CursorPos(cpScreen,-1,-1)
// Move cursor in screen.
liMouse=CursorPos(cpClient,10,10)
Multitask(1)
//// Wanneer de muis origineel buiten de zoektabel stond (links of boven), eerst de muis
// nog even verplaatsen binnen de zoektabel.
//IF liMouseXPos<0 _OR_ liMouseYPos<0 THEN
// liMouse=CursorPos(cpClient,100,100)
// Multitask(1)
//END
// Move cursor to orignial position.
liMouse=CursorPos(cpScreen,liMouseXPos,liMouseYPos)

HTH.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: