Re: GetQueueStatus
- Posted by don cole <doncole at pacbell.net> Apr 21, 2005
- 502 views
Al Getz wrote: > > don cole wrote: > > > > > > When calling GetQueueStatus at the start of the program it reurns 0. > > > > When an event is called such as a keyPress it returns the code for that > > event.Further calls return the code of the last event called. > > > > How can I reset it to 0? > > > > Don Cole > > SF > > > > Hi Don, > > Sorry to hear you're having a problem with it. > One way to accomplish this might be to use PeekMessage, where > you use the constant to remove the message from the queue > something like this: > > y=c_func(win:PeekMessage,{MsgStruct,0,0,0,PM_REMOVE}) > > Did you add something to the program that made it start behaving > in a way you didnt like, or did it do this once you started > using GetQueueStatus? > > Im asking some questions here because i do this myself using my > own lib (WinClass) and it seems to work great. For example, a > plotting program which has to sometimes plot three or four graphs > using large dots (2x2 or 3x3 dots comprized of 5 or more pixels each) > which could take considerable time like 10 seconds or more. I cant > have the user sitting there twiddling his/her thumbs while the painting > is taking place (with no mouse access to menues/floating pop up menues, etc) > so i use GetQueueStatus() and it does the trick. This means i have > to ask the question ... why isnt it working in your program ... what > is the difference? I call GetQueueStatus within my paint/plotting loop > but for a slide show file viewer i would call it from within the > paint/display loop which is just about the same (WM_PAINT) except > you display a picture instead of plot pixels (using that Win API SetPixel() > function call (or similar)). > > How large is the program; could it be sent via email so i could > examine it? I'd have to have all the lib's too using the exact > ones you are using. If this is possible let me know. If you cant > find the problem any other way this might be an alternative. > One thing nice is once you zip Euphoria text source files they > come out pretty small. > > I guess another possibility is that i could put a slide show > function in my own viewer, if that's all you want to do. If you'd > like to do more though you'd still have to add stuff. One thing > nice is when you do it yourself you can eventually get it exactly > the way you want it without settling for someone else's idea of > how it should be done > > > Take care, > Al > > And, good luck with your Euphoria programming! > > My bumper sticker: "I brake for LED's" > Thank you Al. That is exactly what I will do so we don't have tie up this forum with this very specific problem. I will include a read me so you can see exactly what I am tring to do.Give a little time to zip every thing. Don Cole SF