CompuServe Messages

#GetMsg

    13-Jul-88 09:59:45
Sb: #GetMsg
Fm: ROBBY PLOURDE 74017,2562
To: all
I seem to be having trouble with GetMsg. Here's what i'm doing. I have a program which needs to scroll a section of my window, until I get a message from the window's port. What I want is, a user clicks a scroll gadget, I get a GADGETDOWN message then go to a routine that continuously scrolls the window until I receive a GADGETUP message. Now, the way I do it is this, I do a WaitPort on the window's user port. Then I do a GetMsg, copy the info over, then ReplyMsg. I then go to a function the does a ScrollRaster on the window, then does a GetMsg, if GetMsg returned NULL I then repeat the cycle of ScrollRaster, GetMsg, etc. until GetMsg != NULL (that's not equal to) Now, for some reason, right away GetMsg returns a value that seems to be bogus. The Class code I get back doesn't even come close to anything. Can anyone help? Rob