03-20-2012 06:18 AM
Hi There,
I am using DIAdem 2011, I would like to hide few windows/Panel in DIAdem like the Navigator and Script and Rename other Windows/Panel (Reports and Analysis). I looked into the Bar manager help but could not get much information for my requirement.
Can someone quickly help me out.
Thanks in Advance
Pria
03-20-2012 02:20 PM
Hi Pria,
Here is a script that does something very close to what you requested, renaming the ANALYSIS and REPORT panels and hiding the rest. The icons used are in the "...\DIAdem 2011\Resource\Barsource\" folder, but you can provide a full path to your customer icon instead of just the icon name in that (default) folder if you prefer:
Set ActivePanels = BarManager.Bars("DIAPanels").UsedActionObjs Call ActivePanels.Remove("DIAPanelNAVIGATOR") Call ActivePanels.Remove("DIAPanelVIEW") Call ActivePanels.Remove("DIAPanelSCRIPT") Set AnalPanel = ActivePanels("DIAPanelANALYSIS") AnalPanel.Caption = "Seat" AnalPanel.Picture = "ANADlgChnDRICalc.ico" Set AnalPanel = ActivePanels("DIAPanelREPORT") AnalPanel.Caption = "Head" AnalPanel.Picture = "ANADlgChnHICCalc.ico" Call WndShow("SHELL")
You can disable existing panels and add new panels and also set the script code that will run when any panel is clicked on.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
03-21-2012 01:07 AM
Thanks a lot Brad. This is very helpful.