Announcement

Collapse
No announcement yet.

Monitoring events - utility available?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Monitoring events - utility available?

    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.


    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

  • #2
    Gary,

    Try this thread, it has some useful links. http://www.powerbasic.com/support/pb...ad.php?t=36066

    You could also try putting the message texts into a list box.

    Comment


    • #3
      "Events" is "brand-M" terminology.

      "Notification message" or usually just "message" is PB-speak.
      Michael Mattias
      Tal Systems Inc. (retired)
      Racine WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Michael,

        I literally laughed out loud at your comment. You're a funny guy, and so politically correct! <g> (I'm not a smiley graphics guy).

        My wife was nearby and when I explained it to her, she didn't laugh. She's not a programmer so the humor was lost on her.

        I'll be more PB-PC in the future!

        Comment


        • #5
          Why you should NOT refer to 'notification messages' as 'events':

          Terminate Worker Threads Using Windows Events (and Using Thread Local Storage) Demo Dec 23 2005

          Too easy to confuse with Windows Events!
          Michael Mattias
          Tal Systems Inc. (retired)
          Racine WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            A Windows message viewer posted by Brad Byrne might be worth a look..

            http://powerbasic.com/support/pbforu...ad.php?t=37837
            Rgds, Dave

            Comment


            • #7
              WHOA... not to mention, the COM "events" which are now supported by the compiler!

              We're glad you have immigrated to PB-Land; we ask only that you learn to speak our language now. (Where have I heard something like that before?!)
              Michael Mattias
              Tal Systems Inc. (retired)
              Racine WI USA
              [email protected]
              http://www.talsystems.com

              Comment


              • #8
                Hola Michael!

                Lo que pasa?

                Was your comment an almost-veiled Texas joke of some kind? <g> If so, you're right, we whine here all the time about expecting immigrants to learn English.

                What is the largest immigrant group in WI? I saw the movie New In Town last weekend, and they had the most exaggerated "Fargo" accent ever. Do WI people have that accent?

                On the other hand, we have a lot of Spanish words and phrases leaking into the local lingo. Demasiado, perhaps?

                If PB-land gets enough immigrants, how long before the purists pull a Farmer's Branch?

                Adios, amigo!

                Comment


                • #9
                  >What is the largest immigrant group in WI

                  Lutherans.
                  Michael Mattias
                  Tal Systems Inc. (retired)
                  Racine WI USA
                  [email protected]
                  http://www.talsystems.com

                  Comment


                  • #10
                    What is the largest immigrant group in NY?
                    (People that never heard of Taxes)
                    :laugh:
                    Engineer's Motto: If it aint broke take it apart and fix it

                    "If at 1st you don't succeed... call it version 1.0"

                    "Half of Programming is coding"....."The other 90% is DEBUGGING"

                    "Document my code????" .... "WHYYY??? do you think they call it CODE? "

                    Comment


                    • #11
                      Taxes?

                      New Yorker: "Taxes? Isn't that the largest (Mis)state in the union?"
                      :) IRC :)

                      Comment

                      Working...
                      X