WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: erezpaz on March 27, 2017, 10:44:36 AM

Title: udfMsgBox always on top
Post by: erezpaz 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
Title: Re: udfMsgBox always on top
Post by: JTaylor on March 27, 2017, 10:50:39 AM
The WindowOnTop() function?

Jim
Title: Re: udfMsgBox always on top
Post by: erezpaz 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
Title: Re: udfMsgBox always on top
Post by: td 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."