🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Drop down menu or button in hyperview

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello

 

So I want to create a drop down menu or button in hyperview

 

So which commands should I use

 

Thank you 

Find more posts tagged with

Sort by:
1 - 21 of 211
    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    The best thing for you is MVP_Toolbar :

    ftp://ftp.altair.de/pub/hyperworks/support/macro_toolbars/

     

     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    hello

     

    correct me if I am wrong

    but on that website hypermesh toolbar only available right, I want it in hyperview

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    It's toolbar for Hyperview!!!

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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?

     

     

     

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    to create menu items

    [. cget -menu] add command -label demo -command 'puts demo'

     

    refer to tk command 'menu'

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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??

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    i have created a menubutton in tk ,but how to add this menubutton to hyperview window? to modifie a hyperview file? thanks

     

    @tinh 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Menubutton differs from menu

    What are you creating?

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    likes a toolbar 

    i create it with hwtk::menubutton

     

    @tinh 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Ok it is a menubutton

    It cannot be placed in a menu

    Where do you want to place it?

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    2026364149_TIM20181018162027.png.061966a6d1771ecbfebb816f5bbf5505.png 

     

    This is what i want to creat and place it here

    @tinh 

    <?xml version="1.0" encoding="UTF-8"?>TIM截图20181018162314.png

    User: "tinh"
    Altair Community Member
    Updated by tinh

    I have a base script to make toolbar and toolbar button

    But for hypermesh

    I will test it on hyperview if possible

    Plz wait...

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Ok

    thanks

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi, 

    It is not available for hyperview

    But i found a proc to create toolbars in HV

    ::hwt::HwToolbar

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Ok,do this proc need to be added to a hyperview default file ?

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    ok, do you konw which file should be modified.

    or how can find the default file 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    ok thanks