• 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 14980
  • 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
  • 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
  • linbo
    linbo over 14 years ago

     Andrew,

    Thanks!  Exactly what I needed.

     --lin

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • linbo
    linbo over 14 years ago

     Hi Andrew,

     OK, guess I'm not quite complete.  Now that I've got my little file up using the html viewfile, I see the forward/back/home buttons but no File, Print, Edit, etc. menu items.  Do I need to create these from scratch?  Yikes!  Shouldn't this be built in?  I checked and the browser of choice is mozilla yet the html viewfile looks nothing like the mozilla I'm used to.

     BTW I'm doing the more elaborate html instead of plain text 'cause I want to display data in tables.

    Thanks,

    --lin

     

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

    Will answer this in your other post, /forums/p/18718/1266784.aspx#1266784

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dNora
    dNora over 13 years ago

    I'm not getting any hypertext link even using simple example you have provided in IC6.1.6.500.5 version.

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

    Here's steps:

    ttt=hiCreateWindow('default "hypertext" "")
    hiSetViewfile(ttt "~/test.txt")
    hiDisplayWindow(ttt)

     But this is still showing as regular text instead of showing hypertext link. What could be problem?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    This is broken in IC615 from my tests (I was using 6.1.5.500.6). This is probably a consequence of the reimplementation of the text file window to use Qt (it was using Motif still in IC614 - it still works in IC614).

    You can use "html" rather than "hypertext" - that appears to show the link (but following it is a problem). But the "hypertext" support appears to be broken.

    You should file this as a Service Request with Cadence Online Support. Ask the AE who picks it up to put me on copy on the CCR that's filed.

    Regards,

    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