I'm trying to decide between the window-callback-solution and the PureBasic WaitWindowEvent()-solution. The WaitWindowEvent()-solution is my favourite one but has one little problem: Is it possible to get wparam and lparam for the last event of WaitWindowEvent?
Another question: Is there somewhere a quick listing of all possible Event-nrs and the PB-Constants? I know there are 4 or 5 Events listed in the PureBasic Help, but WaitWindowEvent captures lots more... A start would be:
Event Description Constant
512 mouse has moved in the app window ?
513 left mouse button has been pressed in the window ?
514 left mouse button has been released in the window ?
.... .... ....
Play with Windows like the big boys do and use SetWindowCallback().
And for your second question, I'm too tired to find the link that has a full list of all the constants used in PureBasic, but the Win32 API has TONS OF CONSTANTS. I mean TONS AND TONS. Search google for something like "win32 constants" or something among those lines.