• 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. Missing the buttonLayout of a form that docked in a doc...

Stats

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

Missing the buttonLayout of a form that docked in a dockWindow

GenoJohnking
GenoJohnking over 2 years ago

Hi ALL,

I have a lot of forms showed by clicking buttons, it's a bother that so many forms covers the whole screen, so I'm about to reduce the form's number by dock window(hiCreateWindow, hiCreateDockWindow)

I found that the button layout of a form will disapear that the form docked. So I  want to know that how to keep the button layout of a form even it docked.

Virtuoso 6.18.0, Here is example code and screenshot:

Code: 

procedure( popupform()
    let( (fileLocation loadFileButton )
        fileLocation = hiCreateFileSelectorField(
                ?name           'fileLocation
                ?mode           'existingFile
                ?prompt         "Choose a file"
                ?editable       t)

        loadFileButton = hiCreateButton(
                ?name           'loadFileButton
                ?buttonText     "Load File"
                ?callback       "printf(\"Loading file from popup form %s\n\" myForm->fileLocation->value)")

        myForm = hiCreateAppForm(
                ?name           'myForm
                ?formTitle      "My Form which should be popup"
                ?buttonLayout   'Close
                ?dontBlock t    ; with this your previous code would have failed
                ?fields         list(
                                      list(fileLocation 10:10 400:20 100)
                                      list(loadFileButton 415:10 80:30)
                                    )
                ?unmapAfterCB           t)

        myForm
    ); let
)


procedure( dockform()
    let( (sww1 sw1 w1 dform )
        dform = popupform()
        sww1 = hiOpenWindow(
                ?bBox list(30:30 500:500)
                ?type "graphics"
        )
        sw1 = hiGetSessionWindow(sww1)
        w1 = hiCreateDockWindow(
                        ?appType        "Docked Form"
                        ?widgetType     "form"
                        ?handle         'dockedForm
                        ?title          "Docked Form"
                        ?form           dform
                )
        myDock = hiDockWindow(
                        ?window         w1
                        ?session        sw1
                        ?side           'right
                )
    ); let
)

dockform()

  • Cancel
  • AurelBuche
    AurelBuche over 2 years ago

    Hi,

    A form window does not show the buttonLayout of the form it contains.

    If you want it to show, you will have to recreate it by hand using hiCreateButton or hiCreateButtonBoxField

    I suppose you will have to change the callbacks if you want to close the window in the same time because hiFormClose might not be sufficient

    Cheers

    Aurélien

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

    Thanks AurelBuche.

    I understood that missing the layout of the form that docked in the dockwindow is expected baheior.

    Thanks,

    Geno

    • 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