Announcement

Collapse
No announcement yet.

DIALOG DOEVENTS

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

  • DIALOG DOEVENTS

    Hello

    Rather than calling DIALOG DOEVENTS X number of times, is there
    away I can findout how many messages need to be processed and
    hence do DIALOG DOEVENTS a certain number of times.

    Using PB/DLL 6.0

    many thanks
    Mike C

    ------------------

  • #2
    No...

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      Or yes !

      while PeekMessage(msgstructure, handle , 0 , 0 , %PM_NOREMOVE) = true

      dialog do events

      wend

      or somthing similar should do the trick I think :-)

      Adrian

      ------------------

      Comment


      • #4
        This has always worked for me:
        Code:
        SUB DoEventp ()
            STATIC msg AS tagmsg
            WHILE (PeekMessage (msg, 0, 0, 0, %PM_REMOVE))
                TranslateMessage msg
                DispatchMessage msg
            WEND
        END SUB  ' DoEventp
        ------------------

        Comment


        • #5
          Hello

          PeekMessage does the job.

          thanks
          Mike

          ------------------

          Comment

          Working...
          X