DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem: Customizing the User Interface: Disable Standard Menus or Prevent <CTRL-U>

Solved!
Go to solution

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?

 

 

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 1 of 3
(4,004 Views)
Solution
Accepted by topic author RVallieu

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

0 Kudos
Message 2 of 3
(3,993 Views)

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

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 3 of 3
(3,982 Views)