Glenn BarnasAdministrator
(KiX Supporter)
2018-08-24 03:29 AM
System Modal MessageBox?

Has anyone been able to set a MessageBox to System Modal (Style=4096) and have it work as advertised?

This is supposed to halt all other windows until the dialog box is responded to, but this does not seem to work with either Kix or Kixforms. I'd prefer KF over basic Kix so that I can remove the Close [X] and minimize buttons.

Glenn

MESSAGEBOX()
Modality

Value Meaning

0 Application-modal. The user must respond to the message box before continuing work in the application.

4096 System-modal. All applications are suspended until the user responds to the message box.


Glenn BarnasAdministrator
(KiX Supporter)
2018-08-24 01:21 PM
Re: System Modal MessageBox?

Well, more specifically... why do some apps ignore ths system modal while others don't?

Explorer, notepad, outlook, etc do, but browsers don't.

Glenn


BradV
(Seasoned Scripter)
2018-08-24 03:27 PM
Re: System Modal MessageBox?

Hi Glenn,

I ran:

 Code:
$selection=MessageBox("Do you want to continue?", "KixTart",4131)

and I could change to other windows and they worked. So, not sure it is real. Not sure kixtart has the "power" to disable everything else. I ran this on a win 7 pro workstation.

Regards,

Brad


AllenAdministrator
(KiX Supporter)
2018-08-24 04:54 PM
Re: System Modal MessageBox?

Seems Shawn figured this out a long time ago... see this thread in the FAQs
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=82022#Post82022


Glenn BarnasAdministrator
(KiX Supporter)
2018-08-24 09:20 PM
Re: System Modal MessageBox?

Thanks, Guys!

I'm running the app (in production, at least) as the SYSTEM account, invoked by the patch update post-process. I want to create a window that's hard to ignore that will force the user to select a reboot time before midnight of the current day. Currently, they get pop-up messages that they can either continuously click Defer or simply ignore. It's taking days, and more than a week in some cases for users to reboot after patches are applied. I'm looking to put an end to that nonsense.

Glenn