03-12-2009 04:04 PM
I've had some great questions from my most recent DIAdem class participants.
Is there a way to programmatically disable the Standard Menu Items in DIAdem from Script, or in the Desktop.ddd file?
Barring that - is there a way to programmatically prevent a user from exiting the WndShow("Shell","FullScreen") mode when the script sets DIAdem to run in Full Screen mode?
Can DIAdem be programmatically stopped from Script?
Solved! Go to Solution.
03-13-2009 02:16 AM
Hi Ryan,
Yes, you can manipulate the DIAdem standard menus. The example "User-Defined Menus" ("Menu_main.vbs") how to add own defined menus. But of course you can remove the standard menus, too. Example:
Dim iLoop, sPanelName
sPanelName = "REPORT"
for iLoop = MenuItemCountGet(sPanelName, "M") to 1 step -1
call MenuItemDel(sPanelName, "M." & str(iLoop))
next
Since DIAdem 11.0 you can manipulate the DIAdem GroupBars and DIAdem ActionBars in addition. Please have a look at the example "Expanding the Group Bar" ("BarExample_Init.vbs"). And I could imagine that this could be extended for the next DIAdem version.
To prevent CTRL-U in the full screen mode is not possible. That's the fallback to the Diadem standard mode.
I'm not sure what you mean with "programmatically stopped from script". If you meant to shutdown DIAdem then use the command "ProgramExit".
Greetings
Walter
03-13-2009 10:33 AM
Shame there is not global setting to turn off the Standard Menus...
Creating the code to remove them for each page is tedious but not horrible (this is why I love LabVIEW versus Scripting).
Thanks