• 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. Customising Forms

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 144
  • Views 18488
  • 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

Customising Forms

netbug
netbug over 9 years ago

Dear all,

I would like to know if, on a form, it is possible to verify the information entered in a text box as the user is writing ?

Eg.

I have a text box (I am sorry if this is not the name in SKILL) that asks the user to enter the directory where he wants to save the files. I would like to check that the directory is valid without waiting for the user to press the "OK" button.

I would like as well to know, if it is possible to customise the buttons on a form and force the buttons to use my own functions?

Thanks in advance,

José

  • Cancel
Parents
  • skillUser
    skillUser over 9 years ago

    Hi,

    Also you can try using a File Selector field which combines the type in string with a "..." browser button, here's a simple example:

    file = hiCreateFileSelectorField(?name 'file ?prompt "File")
    file->hiFileDialogCaption = "File for my thing"
    file->hiSimplifyFilename  = t
    file->hiFileDialogMode    = 'anyFile
    file->hiFileDialogFilter  = "My Thing file (myThing*);;All Files (*)"

    Yes you can customize the buttons, here's a brief example that shows you how using the ?buttonLayout argument to hiCreateAppForm():

    
      form = hiCreateAppForm(?name 'MyThingForm ?fields list(file)
         ?formTitle    "My Thing Form"
         ?buttonLayout '(Empty (MyThing MyThingCB)
                               (Undo MyUndoThingCB)
                               (Close hiFormClose))
      )

    I hope this helps,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 9 years ago

    Hi,

    Also you can try using a File Selector field which combines the type in string with a "..." browser button, here's a simple example:

    file = hiCreateFileSelectorField(?name 'file ?prompt "File")
    file->hiFileDialogCaption = "File for my thing"
    file->hiSimplifyFilename  = t
    file->hiFileDialogMode    = 'anyFile
    file->hiFileDialogFilter  = "My Thing file (myThing*);;All Files (*)"

    Yes you can customize the buttons, here's a brief example that shows you how using the ?buttonLayout argument to hiCreateAppForm():

    
      form = hiCreateAppForm(?name 'MyThingForm ?fields list(file)
         ?formTitle    "My Thing Form"
         ?buttonLayout '(Empty (MyThing MyThingCB)
                               (Undo MyUndoThingCB)
                               (Close hiFormClose))
      )

    I hope this helps,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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