Alternate way to achieve System Modal dialog box function

Discussion forum about all things Gupta, OpenText and the community.
Viswanadha
India
Posts: 23
Joined: 12 Jul 2018, 10:24
Location: Chennai, India

Alternate way to achieve System Modal dialog box function

Post by Viswanadha » 05 Feb 2019, 04:09

Hi All,

There is a business requriement to freeze the screen until users closes dialog box. I read in the forum it is no longer available
https://forum.tdcommunity.net/viewtopic ... al#p111051 using system modal option.

Is there any alternate way to achive this calling system functions or user32.dll etc..


I am working on CTD6.3 with Windows 10 operating system.

Thanks in Advance

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2912
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Alternate way to achieve System Modal dialog box function

Post by Dave Rabelink » 05 Feb 2019, 08:21

You could create a screenfilling form (maximized), without borders and caption.

But this is purely cosmetic. The user can always use ALT-TAB or taskmanager.
Also be aware that the user can have multiple screens.

But a business requirement to block the screen sounds a bit strange.
(except when the application is running on a dedicated system where the user is only able to use the application and nothing more.
(like an embedded application).

So there are ways to do this, but maybe if you explain the reason for the requirement, there could be specific solutions in that situation.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Viswanadha
India
Posts: 23
Joined: 12 Jul 2018, 10:24
Location: Chennai, India

Re: Alternate way to achieve System Modal dialog box function

Post by Viswanadha » 05 Feb 2019, 08:58

Thank you very much Dave.

Yes, it is a purely business requirement and need to stop other activity until user close the pop up message. It is a crucial message to the user which is mandatory to record user response. Yes the application is running on a dedicated system where only one user can access at a time.

Here are the business requirement

"The pop up box forces the user to click ‘ok’ to navigate away from the screen, thus confirming the user has acknowledged they have seen the warning text message"

Kindly let me know how to achieve this.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2912
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Alternate way to achieve System Modal dialog box function

Post by Dave Rabelink » 05 Feb 2019, 09:08

Viswanadha wrote:
05 Feb 2019, 08:58
need to stop other activity until user close the pop up message. It is a crucial message to the user which is mandatory to record user response. Yes the application is running on a dedicated system where only one user can access at a time.

"The pop up box forces the user to click ‘ok’ to navigate away from the screen, thus confirming the user has acknowledged they have seen the warning text message"
Is "other activity" meaning activity in the application or any activity on the system?

The first one can be solved by making a modal dialog and set it to TOPMOST, which forces the dialog on top of all other windows on the system (not only for the application), even from any other non-topmost windows on the system.

The user is unable to put the dialog behind other screens and will be kept in the view of the user.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Viswanadha
India
Posts: 23
Joined: 12 Jul 2018, 10:24
Location: Chennai, India

Re: Alternate way to achieve System Modal dialog box function

Post by Viswanadha » 05 Feb 2019, 09:29

Thanks for a quick turn around Dave.

I will try using TOPMOST option and will come back.

Other activity means - "suspends processing of the entire system until the user closes the dialog box. The user cannot switch between the dialog box and another window in the application or to a window in a different application"

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2912
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: Alternate way to achieve System Modal dialog box function

Post by Dave Rabelink » 07 Feb 2019, 10:42

I have moved the posts on system blur effect sample from this topic to a dedicated one:

https://forum.tdcommunity.net/viewtopic ... 27&t=61882
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests