Drop down menu or button in hyperview
Hello
So I want to create a drop down menu or button in hyperview
So which commands should I use
Thank you
Answers
-
0
-
hello
correct me if I am wrong
but on that website hypermesh toolbar only available right, I want it in hyperview
0 -
It's toolbar for Hyperview!!!
0 -
I gone trough that pdf
correct me if I am wrong I guess it is different tool bar and different customization
I want to add only my script to drop down list or button nothing else using tcl script like it is available in hypermesh
so can you tell me name of command that will do that?
0 -
Hi
to create menu items
[. cget -menu] add command -label demo -command 'puts demo'
refer to tk command 'menu'
0 -
I looked into it but didn't understand much in first go
Still working on it
Meanwhile please do share if you have any example in which a menu created in hyperview
And where do I need to paste this command so that it will execute it as menu??
0 -
please learn to create menu in tk . there are many examples you can find online
after you have a menu, add it to hyerview easily by
[. cget -menu] add cascade -label Menu -menu $yourmenu
0 -
Altair Forum User said:
please learn to create menu in tk . there are many examples you can find online
after you have a menu, add it to hyerview easily by
[. cget -menu] add cascade -label Menu -menu $yourmenu
i have created a menubutton in tk ,how to add this menu to hyperview window? to modifie which file? thanks
0 -
i have created a menubutton in tk ,but how to add this menubutton to hyperview window? to modifie a hyperview file? thanks
0 -
Menubutton differs from menu
What are you creating?
0 -
0
-
Ok it is a menubutton
It cannot be placed in a menu
Where do you want to place it?
0 -
0
-
I have a base script to make toolbar and toolbar button
But for hypermesh
I will test it on hyperview if possible
Plz wait...
0 -
Ok
thanks
0 -
Hi,
It is not available for hyperview
But i found a proc to create toolbars in HV
::hwt::HwToolbar
0 -
Ok,do this proc need to be added to a hyperview default file ?
0 -
Yes
It is a base proc
So you have to use it to make tcl codes creating toolbars other than just type it in default file
0 -
ok, do you konw which file should be modified.
or how can find the default file
0 -
Create your own tcl file
And modify target of hv shortcut with adding -tcl 'your tcl file'
If you cannot create toolbar, add your menu onto main hv dropdown menu
0 -
ok thanks
0