• 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. Changing width of a toolbar typein item

Stats

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

Changing width of a toolbar typein item

Dmitry Babin
Dmitry Babin over 12 years ago

Hi all,

I've created a toolbar with a typein item using hiCreateToolbarTypein(). I want this field's width to change dynamically to accomodate the text I type in there. My approach was to use hiGetTextWidth("label" toolbar->typein_item->value) to calculate the new width (in units of pixel) and to assign this value to toolbar->typein_item->width.

The problem is, that the assignment apparently does not work. I type in CIW:

 toolbar->typein_item->width

 ==> 100

 toolbar->typein_item->width = 200

 ==> 200 (new value returned)

 toolbar->typein_item->width

 ==> 100 (but the old value is actually kept ! )

 

Does anyone have any suggestions?

 

Thanks,

Dmitry

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Dmitry,

    I don't believe this is currently possible - other than recreating the toolbar item. You should contact customer support so that an enhancement CCR can be filed.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Dmitry Babin
    Dmitry Babin over 12 years ago

    Thanks Andrew,

    I'll file an SR.

     

    Dmitry

    • 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