• 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. Desabling form window resizing

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 15195
  • 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

Desabling form window resizing

LeJonT
LeJonT over 15 years ago

Hi,

Is there a way to disable window resize?
I have created the window using the attached code..

hiOpenWindow(
    ?bBox list( 0:30 820:710 )
    ?type "form"
    ?menus list( hiCreatePulldownMenu( 'fileMenu "File"
                 list( hiCreateMenuItem( ?name 'exitTool ?itemText "Exit" ?callback "hiCloseWindow( WindowOne )" ) ) )
           )
    ?scroll nil
    ?form formCreate
  )

As you can see, I have calculated the size of the form and set as the bBox of the window. Is there any easy way to do this; means the window automatically set to the exact size of the form loaded in it? and get placed at the top-left corner of the window?

Thanks and Regards,
Leo

  • Cancel
  • markbeck
    markbeck over 15 years ago

     What sort of form are you trying to fit the window to?

    Most forms require a size when you create them, and in those cases you already know the size of the form.

    If you're trying to fit a text field, have you tried the hiGetTextFieldFit() function?

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LeJonT
    LeJonT over 15 years ago

    Hi,

    Unknown said:

    What sort of form are you trying to fit the window to?
    Most forms require a size when you create them, and in those cases you already know the size of the form.
    If you're trying to fit a text field, have you tried the hiGetTextFieldFit() function?

     

    The form is created using hiCreateAppForm() function. It does require a size while creation and the window is auotmatically getting fit to that.

    But, once the window is created, one should not be able to resize the window size using mouse by dragging at the sides. Is there a way to achieve this? I'm unable to find any properties related to the window/form to achieve this.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    You can use the ?minSize and ?maxSize arguments with hiCreateAppForm() to do this, but only if you then use hiDisplayForm() to display the form rather than using hiCreateWindow() to do it. I don't think it's possible when using hiCreateWindow.

    If using ?minSize and ?maxSize, you'd set both to the same dimensions, and then the resulting form is not resizable.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LeJonT
    LeJonT over 15 years ago

    Hi,

    Andrew Beckett said:

    You can use the ?minSize and ?maxSize arguments with hiCreateAppForm() to do this, but only if you then use hiDisplayForm() to display the form rather than using hiCreateWindow() to do it. I don't think it's possible when using hiCreateWindow.

    If using ?minSize and ?maxSize, you'd set both to the same dimensions, and then the resulting form is not resizable.

    Regards,

    Andrew.

     

    In that case let me ask it this way; is there any way to resize the fields inside the window to match the window size; like in the Library Manager window in CIW? ; so that the scroll won't come..

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Use the ?attachmentList argument to hiCreateAppForm. This allows you to give information about where each edge of each field is attached to in order to make the forms stretchable.

    I just tried this with a form created with hiOpenWindow (I virtually never do that; I nearly always use hiDisplayForm), and it worked there too.

    Regards,

    Andrew.

    • 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