Repaint window without 'jumps'?

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi,

Im painting some boxes in my window

Code: Select all

StartDrawing(WindowOutput())
  Box(posx,posy,7,7,0)
StopDrawing() 
And having some WebGadget on the same window but in other area
i tried to use this code to erase the boxes painted (refresh or repaint the window)

b.RECT
b\right=WindowWidth()
b\bottom=WindowHeight()
InvalidateRect_(WindowID(),@b,1)
sendmessage_(WindowID(),#WM_PAINT,0,0)

But find the next troubles:

1.- All the window 'jumps'
2.- My webgadget dissapears

I know i can upadte the webgadget, but im looking for another way to achieve my job

In VB i can refresh the window without any jumps in a very similar situation ¿how can i do it in PB?




Best Regards

Ricardo

Dont cry for me Argentina...