Page 1 of 1 1
Topic Options
#213571 - 2018-08-24 03:29 AM System Modal MessageBox?
Glenn Barnas Administrator Online   content
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4305
Loc: New Jersey
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.
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213572 - 2018-08-24 01:21 PM Re: System Modal MessageBox? [Re: Glenn Barnas]
Glenn Barnas Administrator Online   content
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4305
Loc: New Jersey
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
_________________________
Actually I am a Rocket Scientist! \:D

Top
#213573 - 2018-08-24 03:27 PM Re: System Modal MessageBox? [Re: Glenn Barnas]
BradV Online   content
Seasoned Scripter
****

Registered: 2006-08-16
Posts: 680
Loc: Maryland, USA
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

Top
#213574 - 2018-08-24 04:54 PM Re: System Modal MessageBox? [Re: BradV]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4482
Loc: USA
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

Top
#213575 - 2018-08-24 09:20 PM Re: System Modal MessageBox? [Re: Allen]
Glenn Barnas Administrator Online   content
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4305
Loc: New Jersey
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
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (bau55536) and 144 anonymous users online.
Newest Members
mdress, Jagcats, Dramamu, Tamperold, RrrDdd
17677 Registered Users

Generated in 0.031 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org