Announcement

Collapse
No announcement yet.

Messagebox does not pop up on the foreground...

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

  • Messagebox does not pop up on the foreground...

    Hi all,
    When the program that calls the following messagebox is minimized, the
    messagebox does NOT come to the foreground
    Code:
    MSGBOX mess,%MB_SETFOREGROUND,"title"
    When the program is not minimized, the messagebox DOES appear on the foreground.
    I run it on Windows 2000...
    Kind regards
    Eddy


    ------------------
    [email protected]

    [This message has been edited by Eddy Van Esch (edited September 18, 2001).]
    Eddy

  • #2
    Cannot test it at the moment on w2k, but
    Code:
    MsgBox "Test", %MB_SYSTEMMODAL, "Test"
    should work always...


    ------------------
    Peter.
    mailto[email protected][email protected]</A>
    Regards,
    Peter

    Comment


    • #3
      I have noticed that in Win2k it is possible for some programs
      to create that behaviour in other apps. Specificly if WRQ's
      reflecfions is running it tends to hogg the event focus
      even though it can be minimized and other apps can be placed
      in front of it. (Might have something to do with its ability
      record macros with mouse movements.)
      Also I have seen this happen when IE5 is running, where another
      apps msgbox will appear to be created behind the current window.

      Probably is related to javascipt watching for mouseovers.

      In ether case when I have seen it there is usually an app
      running that can hook mouse functions, except that
      Archserve does this on a regular basis when the
      change tape popup comes up and I know were not running flakey
      apps on that server..


      Lane

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


      [This message has been edited by Lane Weast (edited September 18, 2001).]

      Comment


      • #4
        Yes, %MB_SYSTEMMODAL should do it, but in case not, the MessageBox
        API may be a better alternative, like:
        Code:
          MessageBox hWnd, "test", " test", %MB_OK OR %MB_SYSTEMMODAL

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

        Comment


        • #5
          Indeed, %MB_SYSTEMMODAL does the job.
          Silly of me to expect that %MB_SETFOREGROUND would actually do what its
          name suggests...
          BTW is there an API alternative for the PB/DLL INPUTBOX$()-function?
          (like MessageBox is an alternative for MSGBOX...)
          Thanks all!
          Eddy


          ------------------
          [email protected]
          Eddy

          Comment


          • #6
            Eddy,

            Seach for inputbox in the code forum. It should give you
            some alternatives.

            Regards
            Peter

            ------------------
            [email protected]
            [email protected]
            www.dreammodel.dk

            Comment

            Working...
            X