• 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. Set gui item size

Stats

  • Replies 3
  • Subscribers 143
  • Views 1630
  • Members are here 0

Set gui item size

psill00
psill00 5 months ago

I am creating a gui and I want to set the hiCreateListBoxField to a minimum size

What is the syntax to define the x and y size of the list box?

hiCreateLayoutForm('ForumStretchLayout "Grid"
hiCreateGridLayout('grid
?items list(
list(
hiCreateLabel(
?name 'bigTextLabel
?labelText "<b>Libraries</b>"
)
'row 0 'col 0 'vert_align 'top
)
list(
hiCreateListBoxField(
?name 'bigText
;?prompt "Terminals"
?choices sort(ddGetLibList()~>name nil)
?numRows 10
?multipleSelect t
?doubleClickCB "println(\"BAAAM\")"
)
'row 0 'col 1
)
list('col_stretch 0 0)
list('col_stretch 1 1)
list('row_stretch 0 1)
)
?frame "My frame"
)
)

hiDisplayForm(ForumStretchLayout)

  • Sign in to reply
  • Cancel
  • Andrew Beckett
    Andrew Beckett 5 months ago

    Within the ?items list, add:

    list('col_min_width 1 600)
    list('row_min_height 0 400)

    Of course, pick the size you want. You might also want to add a ?minSize argument to the hiCreateLayoutForm to prevent the form being resized too small (if it's smaller than the minimum row/column size then it will add scrollbars).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • psill00
    psill00 5 months ago in reply to Andrew Beckett

    If I want to define size, would this be correct

    list('col_width 1 600)
    list('row_height 0 400)

    Big thanks for the info

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 5 months ago in reply to psill00

    No. If you want a fixed size, set the col_min_width and row_min_height and set the col_stretch and row_stretch to 0.

    The allowed attributes are covered in the documentation for hiCreateGridLayout.

    Andrew

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