• 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 get desired field size in Layout forms

Stats

  • Replies 1
  • Subscribers 142
  • Views 54
  • Members are here 0

How to get desired field size in Layout forms

RK56
RK56 9 hours ago

Hi,

I'm new to Layout forms. For long time I have been sticking with Appforms and felt convenient with coordinates (except when I'm using frames). Mostly because its a onetime effort.  Now I tried to use Layout forms for one of my GUI and found it easier to bring it on screen. But I'm not satisfied with the outcome as I dont know how to control the individual field sizes. I tried combination of verticalBoxLayout, horizontalBoxLayout and gridLayout and all resulted with fields of equal size.

Can anyone point me how to control the field sizes? I tried min_width, col_span, col_stretch. What am I missing?

Thanks

Ram

  • Cancel
  • Sign in to reply
Parents
  • Aurel B
    Aurel B 8 hours ago

    Hi,

    Inside hiCreateVerticalBoxLayout and hiCreateHorizontalBoxLayout, you can set the "stretchiness" ratio of each field by doing this

    instead of providing ?items (list field)

    You can do ?items (list (list field 'stretch 1))  

    You can also add 'stretch_item and 'spacer_item

    You can also set the minimum field dimensions with hiSetFieldMinSize.

    Once used to this, you will normally never use an AppForm again. (Or only for legacy purposes...)

    I did not have the time yet (and I'm trying to answer before Andrew) but I can provide you with examples if you need.

    Hope this helps,

    Aurel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Aurel B
    Aurel B 8 hours ago

    Hi,

    Inside hiCreateVerticalBoxLayout and hiCreateHorizontalBoxLayout, you can set the "stretchiness" ratio of each field by doing this

    instead of providing ?items (list field)

    You can do ?items (list (list field 'stretch 1))  

    You can also add 'stretch_item and 'spacer_item

    You can also set the minimum field dimensions with hiSetFieldMinSize.

    Once used to this, you will normally never use an AppForm again. (Or only for legacy purposes...)

    I did not have the time yet (and I'm trying to answer before Andrew) but I can provide you with examples if you need.

    Hope this helps,

    Aurel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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