• 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 Design
  3. hypertext viewfile skill question

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 126
  • Views 14984
  • 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

hypertext viewfile skill question

linbo
linbo over 14 years ago

 Documentation for the viewfiles like html and hypertext don't include examples of the call to the actual file to display.  Does anyone have some sample code of how and where to call the actual file?  This is simple, right?

 

blart=hiCreateWindow( 'default "hypertext" "testwindow")

hiDisplayWindow( blart)

 

    gets me a wonderful blank window.   Now what?  I have an html file, test.html.  Tried inserting "test.html" instead of "testwindow" and same result. 

 

view("test.html")

   shows me the innards of the html file as a text file.  Obviously view and hiDisplayWindow do not work in a similar way.

It's clear I'm missing something fundamental, can someone enlighten me?

Thanks,

--lin

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    If it's a "hypertext" window, you need to create a file containing something like:

     <A href=http://www.cadence.com> Cadence Design Systems</A>

    (i.e. an anchor tag), and then use:

    hiSetViewfile(blart "text.txt")

    where text.txt is the file containing the anchor. You'll then get a hypertext link - when you click on it, it will use the browser you have set up in your Options->User Preferences.

    If you have a file containing HTML, then do:

    blart=hiCreateWindow('default "html" "testwindow")
    hiSetViewfile(blart "test.html")
    hiDisplayWindow(blart)

    I suspect that's what you want? This is (sort of) covered in the documentation, but an example would probably help, I agree.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    If it's a "hypertext" window, you need to create a file containing something like:

     <A href=http://www.cadence.com> Cadence Design Systems</A>

    (i.e. an anchor tag), and then use:

    hiSetViewfile(blart "text.txt")

    where text.txt is the file containing the anchor. You'll then get a hypertext link - when you click on it, it will use the browser you have set up in your Options->User Preferences.

    If you have a file containing HTML, then do:

    blart=hiCreateWindow('default "html" "testwindow")
    hiSetViewfile(blart "test.html")
    hiDisplayWindow(blart)

    I suspect that's what you want? This is (sort of) covered in the documentation, but an example would probably help, I agree.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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