Must have been very hard to write.
Window is not repainted.
- netmaestro
 - PureBasic Bullfrog

 - Posts: 8452
 - Joined: Wed Jul 06, 2005 5:42 am
 - Location: Fort Nelson, BC, Canada
 
Robbing from my code from last year, the Image.pb code can be perfected in the main loop thus:
That covers the eventuality that the window gets covered up and a repaint is not triggered. Only 1 or 2 events get fired after it goes inactive, so it isn't sitting back there redrawing endlessly.
BTW, if a callback is not getting the #WM_REPAINT message, that is no fault of PB's, so a bug report wouldn't likely produce any fix. imho anyway. [edit] - too late.
			
			
									
									Code: Select all
If EventID 
  If GetActiveWindow()<>WindowID(0)
     ;redraw
  EndIf  
EndIf
BTW, if a callback is not getting the #WM_REPAINT message, that is no fault of PB's, so a bug report wouldn't likely produce any fix. imho anyway. [edit] - too late.
BERESHEIT
						Okay, it makes sense to idle down the window if it thinks it is totally covered.

			
			
									
									Depends - does PureBasic core get the info first and then call the callback? Or does windows call the callback and then pass the messages on to Pure? Either way, a message goes awol. The fact that it turns up in the main event loop is interesting. I am sure it means something deeply significant to someone but it just gives me a headache as I try to follow it through.netmaestro wrote:BTW, if a callback is not getting the #WM_REPAINT message, that is no fault of PB's, so a bug report wouldn't likely produce any fix. imho anyway. [edit] - too late.
@}--`--,--  A rose by any other name ..