On Nov 14, 2007 3:58 PM, Brian Fisher <[EMAIL PROTECTED]> wrote:
> I just tried spy++ with a few apps,
Aha -- solved! I discovered with Winspector (a Spy++ clone) that
WM_USER+7174 is generated while the mouse is pressed on the border.
Attached pyglet program demonstrates that handling this message allows
for animation while the window is being moved and resized. This will
definitely find its way into a future version of pyglet (probably in
combination with issue 137).
Thanks for the info/chat/inspiration.
Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
#!/usr/bin/python
# $Id:$
from ctypes import *
from pyglet import window
from pyglet.window.win32 import *
from pyglet.window.win32 import _user32
class LiveWindow(window.Window):
'''
_allow_dispatch_event = True
def dispatch_events(self):
msg = MSG()
if _user32.PeekMessageW(byref(msg), 0, 0, 0, PM_NOYIELD | PM_REMOVE):
_user32.TranslateMessage(byref(msg))
_user32.DispatchMessageW(byref(msg))
'''
@Win32EventHandler(WM_USER + 7174)
def _event_resizing(self, msg, wParam, lParam):
global count
count += 1
print 'inner loop', count
count = 0
win = LiveWindow(resizable=True)
while not win.has_exit:
win.dispatch_events()
win.clear()
win.flip()
count += 1
print 'outer loop', count