• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Creating a GUI window like TREE command

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 142
  • Views 7297
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Creating a GUI window like TREE command

Tejaskill
Tejaskill over 2 years ago

Hi all,

I am looking for a code which can create a GUI window same as leHiTree command creates 
And that window should display the user input strings

Can anyone help me

Thanks in advance,
Teja.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Teja,

    This is rather an ambiguous request. You want to "create a GUI window same as leHiTree". Does that mean?

    1. You want a form like this:
    2. You want a result window like this (with the same content but some additional data):
    3. Or you just want a text window similar to that which is produced by the tree command but with completely different contents?

    If it's the first two, you could adapt this code: How to print a hierarchy tree of a config-based schematic, normal schematic, or layout view (which I originally wrote before the schematic editor had a tree command as standard). If it's the third, you could either write to a file and then use the view() function to display the file, or you could just use:

    win=hiOpenWindow(?type "text")
    hiTextDisplayString(win "Hello\n" nil)
    hiTextDisplayString(win "World\n" nil)

    or something like that.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tejaskill
    Tejaskill over 2 years ago in reply to Andrew Beckett

    Hi andrew,

    Thanks for the reply I originally wanted the third one.
    I have written the code based on your inputs
    But I also wanted to add File, Edit, View buttons to menu bar.
    could you please suggest a solution.

    Thanks,
    Teja.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to Tejaskill

    Teja,

    You could do instead:

    win=view("/dev/null")
    hiSetWindowName(win "Viewfile")
    hiTextDisplayString(win "Hello\n" nil)
    hiTextDisplayString(win "World\n" nil)

    The view() function returns a text window looking at a file, and if we don't care about the file part we can give it a null file - and then write to the window as before. Or if you have a real file, you could use that. The view() function will add the menus you're expecting.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information