Announcement

Collapse
No announcement yet.

DIALOG DOEVENTS

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

  • Guest's Avatar
    Guest replied
    Hello

    PeekMessage does the job.

    thanks
    Mike

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

    Leave a comment:


  • Ed Turner
    replied
    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
    ------------------

    Leave a comment:


  • Adrian C Aitken
    replied
    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

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

    Leave a comment:


  • Tom Hanlin
    replied
    No...

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

    Leave a comment:


  • Guest's Avatar
    Guest started a topic DIALOG DOEVENTS

    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

    ------------------
Working...
X