Re: Many questions
- Posted by daryl_vdb at HOTMAIL.COM Aug 10, 2001
- 433 views
>2)How can i use multiple page graphics with win32lib like in dos so >graphics will move smoothly for a window's game that i am making? If you want graphics to move smoothly, here's what you do. Create a pixmap control that is the size of the window client area. This will be your virtual screen. Instead of drawing to the window, draw to the pixmap. When you are ready to switch pages, use copyBlt() to copy the pixmap to the window. If you want multiple pages for some other reason, just create multiple pixmaps. >3)How can i write a window's game that will run in a loop and still >catch mouse events? When i use a loop for my game the mouse doesn't >work in the window until the loop is over. pereodically call doEvents(). Every time this is called, win32lib checks for events and executes the apropriate event handlers. As for your floppy disk question, I wish I knew how to do that, but I don't. sorry. regards, Daryl van den Brink