DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

HDDelAll and standard user confirmation dialogs when using non-modal dialogs

Solved!
Go to solution

Hello, i'm using Diadem 2012,

 

I have a non modal SUD dialog to handle data files and a subsequent script is deleting the data header structure by executing the function HDDelAll(). When the function is executed, DIADEM asks if i really want to delete the header (it seems like it's a standard user confirmation dialog, i can't find any information about this). As I handle multiple and different files by this non modal dialog this pop up is perennial and it's annoying.

Is it possible to suppress DIADEM standard user confirmation dialogs?

 

Greetings

 

0 Kudos
Message 1 of 4
(3,188 Views)
' avoid save dialog
FileModification = "ignore" 

Will supress the questions for save.

data.root.clear()

will never ask as far as I know.

0 Kudos
Message 2 of 4
(3,163 Views)
Solution
Accepted by topic author olhass

I have found a work around: for all functions that throw unwanted dialogs you can use the internal flag CmdNoMsgDisp to disable Messages (also works for Infos and Errors)

CmdNoMsgDisp = 1 'block user confirmation

Call HDDelAll()

CmdNoMsgDisp = 0 'unblock user confirmation

Be sure to reset CmdNoMsgDisp after calling the function or you will lose all following dialog inputs...

0 Kudos
Message 3 of 4
(3,156 Views)

...I'm still wondering why this confirmation message is not shown when I execute the function by running a script (not a SUD)...

Smiley Surprised

0 Kudos
Message 4 of 4
(3,152 Views)