• 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. how to create label with HTML link

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 143
  • Views 9390
  • 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

how to create label with HTML link

Drake96
Drake96 over 3 years ago

Hola,
Can anyone please guide how to create the Label with HTML link?
That if i click on that label "cadence" it should open "www.cadence.com"

Drake

  • Cancel
  • mbracht
    mbracht over 3 years ago

    I don't think you can do that for a label. But why don't you just use hiCreateHypertextField() in the first place...

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Drake96
    Drake96 over 3 years ago in reply to mbracht

    Max,

    i dont want the background lay ...only link should be there...Can we do that?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 3 years ago in reply to Drake96

    I already sent you a solution for that...

    I guess you weren't satisfied with the size of the field but you never answered and just opened another thread...

    Here is another updated version showing how you can play with stretch items (you could also add spacer items to achieve exactly what you want)

    (hiDisplayForm
      (hiCreateLayoutForm 'custom_form "Custom Form"
        (hiCreateVerticalBoxLayout 'main_layout ?items (list
            (list (hiCreateHypertextField ?name 'cadence_link_field
              ?value "<body style='background-color:#F0F0F0'>
    <a href='www.cadence.com'>cadence</a><br>
    <a href='skill:(println 12)'>SKILL Callback</a>
    </body>"
              ?shadowed nil
              ?hasVerticalScrollbar nil
              ?hasHorizontalScrollbar nil
              ) 'stretch 1)
            (hiCreateLabel ?name 'custom_label ?labelText "A label")
            '(stretch_item 10)
            ))
        ))

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Drake96
    Drake96 over 3 years ago in reply to AurelBuche

    Hi Aurel, sorry for that..yes i was not completely satisfied...lemme try this test-case
    Thank you!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 3 years ago in reply to Drake96

    Another example with a spacer item, maybe closer to what you want:

    (hiDisplayForm
      (hiCreateLayoutForm 'custom_form "Custom Form"
        (hiCreateVerticalBoxLayout 'main_layout ?items (list
            (list (hiCreateHypertextField ?name 'cadence_link_field
              ?value "<body style='background-color:#F0F0F0'>
    <a href='www.cadence.com'>cadence</a><br>
    <a href='skill:(println 12)'>SKILL Callback</a>
    </body>"
              ?shadowed nil
              ?hasVerticalScrollbar nil
              ?hasHorizontalScrollbar nil
              ) 'stretch 1)
            '(spacer_item -15)
            (hiCreateLabel ?name 'custom_label ?labelText "A label")
            '(stretch_item 10)
            ))
        ))
    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Drake96
    Drake96 over 3 years ago in reply to AurelBuche

    Hi Aurel,
    Thanks,
    One follow up questions-
    Suppose i don't want to use Html browser...i simply want that if i click on label/link it should prompt a local file in message window using view() option?

    Is it feasible?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Drake96
    Drake96 said:
    Is it feasible?

    Yes, you need to look at the example above using the skill: protocol and to read the documentation. As you can see, that's using skill:println(12) - of course it could use 'skill:view(\"someFile\")' as the href.

    You are getting close to getting blocked because you keep asking similar questions or don't do ever basic research and experiment or tries from the documentation, and are consuming a lot of the valuable time of multiple contributors here. Please think carefully when asking questions.

    Andrew

    • Cancel
    • Vote Up +1 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