• 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. hiCreateTabField

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 13520
  • 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

hiCreateTabField

archive
archive over 18 years ago

Hello , Can anyone provide one small example for hiCreateTabField. Just how the o/p will be. Im getting lot of errors that, I have provided illegal attributes. Thanks,


Originally posted in cdnusers.org by rimser9
  • Cancel
  • archive
    archive over 18 years ago

    Here's a very simple example:

    procedure( CCStabFormCreate()
    let((
    ( xWidth 330 )
    ( yDelta 30 )
    ( prompt 126 )
    LayoutLib LayoutCell LayoutView Reason LayoutBrowse
    tabfield1 tabfield2 tabField
    )

    LayoutLib=
    hiCreateStringField(
    ?name 'LayoutLib
    ?prompt "Library"
    ?value ""
    ) ; hiCreateStringField

    LayoutCell=
    hiCreateStringField(
    ?name 'LayoutCell
    ?prompt "Cell"
    ?value ""
    ) ; hiCreateStringField

    LayoutView=
    hiCreateStringField(
    ?name 'LayoutView
    ?prompt "View"
    ?value ""
    ) ; hiCreateStringField

    Reason=
    hiCreateStringField(
    ?name 'Reason
    ?prompt "Reason"
    ?value ""
    ) ; hiCreateStringField

    LayoutBrowse=
    hiCreateButtonBoxField(
    ?name 'LayoutBrowse
    ?choices list( "Browse" )
    ?callback
    ;list( "ddsSyncWithForm( CCStabForm 'browse 'LayoutLib 'LayoutCell 'LayoutView )" )
    list( "ddsSyncWithForm( eval(CCStabForm->tabField->page1) 'browse 'LayoutLib 'LayoutCell 'LayoutView )" )
    ?prompt " "
    ) ; hiCreateButtonBoxField

    tabfield1 = list(
    list(LayoutBrowse xWidth/2:1*yDelta xWidth/2 :yDelta-10 prompt/2 )
    list(LayoutLib 10:2*yDelta xWidth-20:yDelta prompt/2 )
    list(LayoutCell 10:3*yDelta xWidth-20:yDelta prompt/2 )
    list(LayoutView 10:4*yDelta xWidth-20:yDelta prompt/2 )
    )

    tabfield2 = list(
    list(LayoutLib 10:2*yDelta xWidth-20:yDelta prompt/2 )
    list(LayoutCell 10:3*yDelta xWidth-20:yDelta prompt/2 )
    list(LayoutView 10:4*yDelta xWidth-20:yDelta prompt/2 )
    list(Reason 10:5*yDelta xWidth-20:yDelta prompt/2 )
    )

    tabField = hiCreateTabField(
    ?name 'tabField
    ?notebookStyle nil
    ?pageScroller nil
    ?tabPlacement 'top
    ?tabs list("first" "second")
    ?fields list(tabfield1 tabfield2)
    ?value 1
    )

    hiCreateAppForm(
    ?name 'CCStabForm
    ?fields list(list(tabField 0:0 xWidth+5:13*yDelta+15 0))
    ?initialSize list( xWidth+5 13*yDelta+15)
    )

    hiDisplayForm(CCStabForm)
    ))


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Thanks Andrew that helped.


    Originally posted in cdnusers.org by rimser9
    • 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