Page 1 of 1

Support of #WM_KEYDOWN + EventwParam()?

Posted: Mon Nov 23, 2009 10:01 pm
by Marco2007
Hi,

according to this:
Srod wrote:Yes PB will be swallowing the timer events now.
Srod and TS-Soft wrote:use a callback
Will that also happen for e.g.:

Code: Select all

#WM_KEYDOWN + EventwParam() 

Code: Select all

#WM_SIZE

I´m always avoiding callbacks, when there`s a "standard-way" (you know, what I mean)...

br and thx
Marco

Re: Support of #WM_KEYDOWN + EventwParam()?

Posted: Tue Nov 24, 2009 12:31 am
by netmaestro
I´m always avoiding callbacks, when there`s a "standard-way"
When you're handling Windows messages with no PureBasic native counterpart, the callback is the standard way. Using EventwParam() or EventlParam() on a #WM_<whatever> message is about the most non-standard approach there is. This is why these two commands are unsupported.

Re: Support of #WM_KEYDOWN + EventwParam()?

Posted: Tue Nov 24, 2009 6:47 pm
by Marco2007
Best thank for this answer...a very important info!
Ok, so maybe I should change my mind about using callbacks.

thx!