• 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. View file control and button colour

Stats

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

View file control and button colour

Drake96
Drake96 over 3 years ago

Hi,

I have two questions-

1) am using hiviewfile..how can i control the size of the message box opening?

2)IS there a way to colour the button or the text on button?

Drake

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago
    1. No. You could use hiGetExistingFile instead which allows the control over where the file selector appears, and then have your own callback to call view() with screen coordinates (not sure what you meant by "message box opening" - it could have been either the size of the file selector dialog (which you can't control) or the size of the resulting view window (which you can control if you do it yourself)
    2. No, unless you use an icon on the button rather than text. The buttonText isn't HTML, so you can't change the colour. You can do this with some widgets (e.g. hiCreateLabel), but not buttons.

    Andrew

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

    Andrew,
    I think we cant control the box coordinates while using hiviewfile for display box, right?

    Suppose is there a way to get hyper-link that when i click that particular link ,html opens and it shows the text (you click the right link)?

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

    Given that hiViewFile has no arguments, you can't control the position/size of anything using that function.

    You could create a hypertext field, for example:

    hyper=hiCreateHypertextField(
      ?name 'hypertext
      ?value "<A href=/home/myuser/.cshrc>Link</A>"
    )

    Andrew

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

    Gotcha,
    Andrew is there way to remove the background menu ..only link should be there..i check the doc but couldn't find any options?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Drake96
    Drake96 over 3 years ago in reply to Andrew Beckett

    Gotcha,
    Andrew is there way to remove the background menu ..only link should be there..i check the doc but couldn't find any options?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to Drake96

    What "background menu"? I have no idea what you're talking about.

    Andrew

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

    "background menu" is there a way to only have link not that "box"?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 3 years ago in reply to Drake96
    hyper=hiCreateHypertextField(
    ?name 'hypertext
    ?shadowed nil
    ?hasVerticalScrollbar nil
    ?hasHorizontalScrollbar nil
    ?value "<body style='background-color:#F0F0F0; font-family:Roboto Mono; font-size:12px;'>
    <A href=/home/myuser/.cshrc>Link</A></body>"
    )

    (hiDisplayForm
    (hiCreateLayoutForm 'custom_form "Custom Form"
    (hiCreateFormLayout 'main_layout ?items (list hyper))))

    • 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