View Full Version : What is HandleEventParms?
plinydogg
10-03-2006, 02:41 AM
What is "HandleEventParms?" It is used in the "Form based Hello World" tutorial but I can't find any info about it. If you type in "HandleEventParms" in Google, the only link is to this forum. Is it part of a library file or something?
Thanks in advance.
kornalius
10-03-2006, 02:56 AM
HandleEventParms is a special PPL define. It is used to create variables out of wParam$ and lParam$ variables for most of the common events. You don't have to use it and can deactivate it in the PIDE if need be.
MagNet
10-03-2006, 01:27 PM
So that means that I can get w/lParam from for instance the LBUTTONDOWN event without using that event?
plinydogg
10-03-2006, 01:40 PM
Add whatever you guys are talking about to my tutorial requests =).
kornalius
10-03-2006, 02:41 PM
:) wParam and LParam are parameters that are passed to event functions. Windows uses these values to store different values when passing parameters to an event function.
func MyEvent(hWnd$, Msg$, wParam$, lParam$)
end;
When MyEvent is called, hWnd$ contains the form handle of the event, Msg$ the event message number and wParam$ and lParam$ can serve for multiple purposes (like X and Y values of a WM_MOUSEDOWN event, the key pressed for a WM_KEYDOWN event, etc...)
We didn't invent that, it's straight from how Windows does it.
We will try to simplify things a bit more as we go. The simplified event handling system is offering a simpler interface but I think it can be simplified a bit more.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.