• 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 create a through separator line in a layout form...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 6477
  • 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

How to create a through separator line in a layout form?

Martinsh
Martinsh over 2 years ago

In following example, a horizontal separator is inserted in the form. But the separator line is not a through horizontal line and it can't cover the label part of the fields on the form. How to create a through separator on the form?

FORM2=hiCreateLayoutForm(
'NPN_
"NPN "

hiCreateFormLayout(
'main_layout
?spacing 10
?label_align 'center
?items (list
hiCreateStringField(
?name 'SF1
?prompt "SF1aaaaaaa "
?editable t)
hiCreateSeparatorField(
?name 'sep1)
hiCreateStringField(
?name 'SF2
?prompt "SF2bbbbbbb"
?editable t)
hiCreateStringField(
?name 'SF3
?prompt "SF3ccccccc"
?editable t)
));main_layout
);display_form
hiDisplayForm(FORM2)

Best regards,

Martin

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Martin,

    Form layouts don't have much control - they are intended to be simple and convenient, but don't give the full controls that (say) a Grid layout would. The downside of grid layouts however is that you normally end up having to create the prompts as labels so that the prompts align (otherwise the overall containers align rather than the entry boxes). If I do this (and use 'col_span to span columns), this works:

    FORM2=hiCreateLayoutForm( 
      'NPN_ 
      "NPN "
      hiCreateGridLayout( 
        'main_layout
        ?spacing 10 
        ?items 
          list(
            list(
              hiCreateLabel(
                ?name 'SF1lab
                ?labelText "SF1aaaaaaa"
              )
              'row 0 'col 0
            )
            list(
              hiCreateStringField( 
                ?name 'SF1
                ?editable t
              )
              'row 0 'col 1
            )
            list(
              hiCreateSeparatorField(
                ?name 'sep1
              )
              'row 1 'col 0 'col_span 2
            )
            list(
              hiCreateLabel(
                ?name 'SF2lab
                ?labelText "SF2bbbbbbb"
              )
              'row 2 'col 0
            )
            list(
              hiCreateStringField( 
                ?name 'SF2
                ?editable t
              )
              'row 2 'col 1
            )
            list(
              hiCreateLabel(
                ?name 'SF3lab
                ?labelText "SF3ccccccc"
              )
              'row 3 'col 0
            )
            list(
              hiCreateStringField( 
                ?name 'SF3
                ?editable t
              )
              'row 3 'col 1
            )
            list('col_stretch 0 0)
            list('col_stretch 1 1)
          )
      )
    )
    
    hiDisplayForm(FORM2)
    

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 2 years ago in reply to Andrew Beckett

    Hi Andrew,

    For once I might have a simpler solution than yours

    Wrapping the separator in an horizontal box layout should work:

    FORM2=hiCreateLayoutForm(
    'NPN_
    "NPN "
    
    hiCreateFormLayout(
    'main_layout
    ?spacing 10
    ?label_align 'center
    ?items (list
    hiCreateStringField(
    ?name 'SF1
    ?prompt "SF1aaaaaaa "
    ?editable t)
    hiCreateHorizontalBoxLayout( 'sep1_wrap_layout
      ?items list( hiCreateSeparatorField( ?name 'sep1)))
    hiCreateStringField(
    ?name 'SF2
    ?prompt "SF2bbbbbbb"
    ?editable t)
    hiCreateStringField(
    ?name 'SF3
    ?prompt "SF3ccccccc"
    ?editable t)
    ));main_layout
    );display_form
    hiDisplayForm(FORM2)

    Cheers,

    Aurélien

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to AurelBuche

    Excellent idea Aurélien. That’s a much simpler solution!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Martinsh
    Martinsh over 2 years ago in reply to Andrew Beckett

    Thanks Andrew and Aurelien. Both the ways are good for me.

    Martin

    • 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