After the trouble I had with the option control (see my earlier posting), I wrote this simple app to log events. By the time the program starts up and I click to close it, there are a couple hundred events that have fired and are listed in the text file.
Does anyone know of a utility that will monitor events in a more readable fashion - or any utility I can use with a PB program to get more insight into what fires when?
Since many of the named constants have the same value, even though they represent events for different objects/controls, it complicates writing my own code that simply translates the values into text. I'd need a big list of named constants and their corresponding numeric values, which I've not seen in any one place.
Does anyone know of a utility that will monitor events in a more readable fashion - or any utility I can use with a PB program to get more insight into what fires when?
Since many of the named constants have the same value, even though they represent events for different objects/controls, it complicates writing my own code that simply translates the values into text. I'd need a big list of named constants and their corresponding numeric values, which I've not seen in any one place.
Code:
#Compile Exe Global hDlg As Dword Function PBMain() As Long Dialog New Pixels, 0, "Option Test",300,300,200,200, _ %WS_OverlappedWindow, 0 To hDlg Control Add Check3State, hDlg, 100,"Click Me!", 50,50,100,20 Open "xxx.txt" For Output As #1 Dialog Show Modal hDlg Call DlgProc To Result& End Function CallBack Function DlgProc() As Long Static i As Long i = i + 1 Print #1, i, Cb.Hndl, Cb.Msg, Cb.WParam, Cb.LParam End Function
Comment