Re: MLE question revisited

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mike Sabal wrote:

> How do I get rid of the trapped Return so
> it isn't passed along?

Try something like:

   if key = VK_RETURN then
      -- tell Win32Lib to stop processing
      returnValue( True )
   end if

or even uglier:

   -- sorry, couldn't resist...
   returnValue( key = VK_RETURN )

The returnValue function tells Win32Lib that your program handled the
function, and doesn't need any further processing by Windows. The routine is
called 'returnValue' because it's the value returned by the WndProc
callback. A bit obscure; I may rename the procedure.

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu