• 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. Is there a way to set bold string as button's text?

Stats

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

Is there a way to set bold string as button's text?

GenoJohnking
GenoJohnking over 1 year ago

Hi All,

I found that we can set bold text of label text, so I tried to set the bold text of button text use the same way, but it didn't works.

So I want to ask that is there a way to set the format of button text?

Code example:

procedure(bold()
let((lb1 )
  lb1 = hiCreateLabel(
    ?name 'lb1
    ?labelText "<b style='color:#cc0000;'>English</b>"
  )
 
  ; lb2 = hiCreateLabel(
  ;   ?name 'lb2
  ;   ?labelText "<b style='color:#cc0000;'> labelText </b>"
  ; )
 
  bt1 = hiCreateButton(
    ?name 'bt1
    ?buttonText ""
  )
  form1 = hiCreateAppForm(
    ?name 'form1
    ?fields list(
      list(lb1 5:5 100:30)
      list(bt1 5:35 300:30)
    )

  )
  hiSetButtonLabel(form1~>bt1 "<b style='color:#cc0000'> labelText </b>")
  hiDisplayForm(form1)
 
)
)

bold()

Thanks,

Geno

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    Hi Geno,

    This isn't supported with the text on buttons. Even with other fields it has to be used with care because it conflicts with some auto-scaling we have implemented for the older 2D forms (in other words you would need to be careful about not significantly changing font sizes). There's a change request (CCR 2249006) asking about buttonText support, but there's no plans for this currently.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • GenoJohnking
    GenoJohnking over 1 year ago in reply to Andrew Beckett

    Thanks Andrew, I understood.

    Thanks,

    Geno

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • GenoJohnking
    GenoJohnking over 1 year ago in reply to Andrew Beckett

    Thanks Andrew, I understood.

    Thanks,

    Geno

    • 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