Author Topic: udfMsgBox always on top  (Read 447 times)

erezpaz

  • Newbie
  • *
  • Posts: 44
udfMsgBox always on top
« on: March 27, 2017, 10:44:36 am »
Hi

I am using udfMsgBox to create a message bog with a windows icon relevant to the message. If i use dynamic dialog and the udfMsgBox, sometimes this message go behind the dialog and only if user move the dialog in the screen he can see the message. This doesn't happened if using regular message function. How can i make udfMsgBox to always on top?

Thanks
Erez

JTaylor

  • Pundit
  • *****
  • Posts: 806
    • Data & Stuff Inc.
Re: udfMsgBox always on top
« Reply #1 on: March 27, 2017, 10:50:39 am »
The WindowOnTop() function?

Jim

erezpaz

  • Newbie
  • *
  • Posts: 44
Re: udfMsgBox always on top
« Reply #2 on: March 27, 2017, 11:06:12 am »
This will be good when calling external application and make it ontop but i want to make the udfMsgBox that display custom message on top. I got the function from here: http://winbatch.hpdd.de/MyWbtHelp/htm/udfMsgBox.htm

td

  • Tech Support
  • *****
  • Posts: 2223
    • WinBatch
Re: udfMsgBox always on top
« Reply #3 on: March 27, 2017, 01:21:20 pm »
Look at Delev's site again.  Notice that he lists a set of flags applicable to the MssageBoxA function, including MB_SYSTEMMODAL = 4096.   System modal is what you are looking for.  BTW, you can use WindowOnTop to make WinBatch Dialogs and other WinBatch Windows "Top Most."
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates