DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Palettes in DIAdem

Is there a way to create custom palettes in DIAdem 9.1 or DIAdem 10?  I would like to have a palette that when the icon is clicked on a specific script is run.  I know how to do this with custom menu's but I think a palette would be easier to use.
 
Thanks in advance.
 
AJL
0 Kudos
Message 1 of 18
(6,172 Views)
Hi AJL,
 
Sorry, DIAdem doesn't support adding customized items to its Panel palettes.  The most obvious place for this would be in the ANALYSIS panel, where a customer's specific analysis scripts would be ideally housed.  Menu customization is probably the best option for the time being.  You can actually use those same menu customization functions to hijack one or more of the existing icons right below the menus in each Panel.  So if you're willing to live without the normal functionality of a given icon, you can associate a custom VBScript to run when that icon is pressed.  There may even be a way to change the appearance of those icons-- but that I'm not sure of.  At any rate I am NOT speaking of the panel icons, but rather the ones on the top of your screen just below the menus.
 
This is an area of DIAdem that R&D has been musing about for a while, but my recommendation to you is to learn to live with existing functionality.  My guess is that we'll eventually get some added customization here, but I doubt it will be any time soon.
 
As a gift-offering, I am inclosing my own personal object class for creating DIAdem menus.  I find these much easier to use, particularly for large menus that I keep changing.  Also, if you're interested, I have a second example built on these classes which automatically creates DIAdem custom menus based on a particular directory structure-- this enables you to configure your DIAdem menu by simply arranging a particular folder in Windows Explorer.
 
Regards,
Brad Turpin
DIAdem Product Support Engineer
0 Kudos
Message 2 of 18
(6,146 Views)
Here's the gift offering.
Message 3 of 18
(6,146 Views)
How can I "hijack" an Icon?
0 Kudos
Message 4 of 18
(6,148 Views)
Hi AJL,
 
I am not sure I understand exactly what you are asking for. Could you please clarify what you mean by "hijack"?
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 5 of 18
(6,141 Views)

Hi all,

 

I have a similar "problem": Before to call an InteractionOn I would like to deactivate or hide some of the icons of the DIAdem VIEW, for example the Print and Calculator icons...

 

Is that possible? How can I do it?

 

Regards,

Marc.

 

0 Kudos
Message 6 of 18
(6,135 Views)

By "Hijack", I was referring to Brad's post.  Apparently you can use the existing icons below the menu bar and change what action the icon performs.  I was wondering how this is accomplished.

 

AJL

0 Kudos
Message 7 of 18
(6,127 Views)

>By "Hijack", I was referring to Brad's post.  Apparently you can use the existing icons below the menu bar and change what action the >icon performs.  I was wondering how this is accomplished.

This is from the DIAdem Help files for Command: MenuItemChange: (it works for me!)

WndName Specifies the name of a DIAdem panel.
MenuItemPos Specifies the menu to which DIAdem adds a menu or a menu item.
MenuItemTitle Specifies the label of a menu or of a menu item.
[MenuItemFct] Specifies the function of a menu item in the Toolbar.

Call MenuItemChange(WndName, MenuItemPos, MenuItemTitle, [MenuItemFct])

The following example assigns the ToolTip Start Calculator and the CalculatorStart command to the third button in the DIAdem VIEW Toolbar.

Call MenuItemChange("VIEW","I.3","Start Calculator","Call CalculatorStart")
Message 8 of 18
(6,127 Views)

Hi,

 

I see how it works, but do you know why the commands: "MenuItemCountGet" and "MenuItemInfoGet" do not work with the icons?

 

We can use the MenuItemDel to remove an icon. It’s possible only to deactivate an icon?

 

Any way my problem is solved.

Thanks for showing me how to access to de icons… “I.3”

 

Best regards,

Marc.

0 Kudos
Message 9 of 18
(6,107 Views)

'MenuItemCountGet" and "MenuItemInfoGet" for "MenuItemPos" = "C" or "I" does not work for me either, perhaps I am not using it correctly.  The following:

 

Call MenuItemCountGet("SCRIPT", "I")
MsgBox MenuItemCount

 

returns "-1" for me 😞  

 

Hi,

 

I see how it works, but do you know why the commands: "MenuItemCountGet" and "MenuItemInfoGet" do not work with the icons?

 

We can use the MenuItemDel to remove an icon. It’s possible only to deactivate an icon?

 

Any way my problem is solved.

Thanks for showing me how to access to de icons… “I.3”

 

Best regards,

Marc.

0 Kudos
Message 10 of 18
(6,087 Views)