Hyper View browser tab

Beta
Beta New Altair Community Member
edited October 2020 in Community Q&A

Hi,

 I am trying to create a new tab in HyperView broswer. 

 

I was able to do that with 

 post browser add 'new tab' command

 However, each time I run the code, the new tab always showed up on the left side. I wish to display it on the right side as in the picture below.

 

Is it possible to do that???

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.b9d7dc6eadde666de488806a55682236.png

Answers

  • tinh
    tinh Altair Community Member
    edited November 2018

    Where did you find syntax of 'post browser' command?

     

    I don't know that proc but a direct way to add tab on the right

  • Beta
    Beta New Altair Community Member
    edited November 2018

    I found that command in this path:

    C:\Program Files\Altair\2017\hw\tcl\hw\docs\browser.html

    Please help me if you find out another way to do the task?/

  • tinh
    tinh Altair Community Member
    edited October 2020
  • Beta
    Beta New Altair Community Member
    edited December 2018

    hi Tinh,

     

    Thank you very much!

     

    May I know how you can find out those codes.

     

    I know about hwtk, but I could not find out the path of tk frame in HyperView

  • tinh
    tinh Altair Community Member
    edited December 2018

    Hwtk utilizes itcl/itk package to generate classes & objects in OOP

    You can find them out by ::itcl::find or winfo command

  • Beta
    Beta New Altair Community Member
    edited December 2018

    Thank you very much for your answer

  • Beta
    Beta New Altair Community Member
    edited December 2018

    Hi Tinh,

     

    I am failed to use your suggested command with right_proj. Below is the code I used:

     .mainFrame.center.f1.right_proj add [hwtk::pane .newTab -text 'New Tab']

    Then I change 'f1' to 'f2' and it worked. I think the frame path for the right side could be different.