• 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. change help file

Stats

  • Replies 2
  • Subscribers 143
  • Views 374
  • Members are here 0

change help file

Albertyu
Albertyu 23 days ago

hi all!

i want callback my own help file in appform when i click help button, how can i achieve it. if you can reply with completed code that will be greatful !

thanks for reply

  • Sign in to reply
  • Cancel
  • Aurel B
    Aurel B 23 days ago

    Hi,

    I made you a custom snippet that shows most capabilities to display help in a GUI.

    This is SKILL++, if you don't understand everything that is going on, feel free to ask questions.

    I can also make an equivalent default SKILL snippet if you need:

    (inScheme
    (let ()
    
      (defglobalfun example_gui ()
        "Display an 'Example GUI'."
        (let ( ( form (create_form) )
               )
          ;; Set form help callback
          (setf form->hiFormSym->hiHelpAction 'example_gui_help)
          ;; Display form under the mouse
          (hiDisplayForm form -1:-1)
          ))
    
      (defun create_form ()
        "Create the form and return it."
        (hiCreateLayoutForm (gensym 'example_form) "Example GUI"
          (hiCreateFormLayout 'main_layout ?items (list
              (hiCreateLabel ?name 'label ?labelText "<font size='+2' color='red'>Dummy Text...</font>")
              ;; Add a field wich displays a tooltip when hovered
              (let ( ( field (hiCreateStringField
                               ?name     'input
                               ?prompt   "Input"
                               ?defValue "This field displays a tooltip when hovered."
                               ) )
                     )
                ;; Tooltip is set here, it can be HTML
                (setf field->hiToolTip "<font size='+2'> <b>This is bold!</b><br/> <font color='red'>This is red!</font> </font> <br/>
    This text is a bit smaller...")
                field
                )
              ));main_layout
          ))
    
      (defglobalfun example_gui_help ( @optional _obj_type _obj_name _obj_detail _more_detail @rest _ )
        "Custom help callback."
        (hiDisplayAppDBox
          ?name         (gensym 'example_form_help_dbox)
          ?dboxBanner   "Example GUI Help"
          ?dboxText     "Example GUI help goes here..."
          ?dialogType   (symeval 'hicInformationDialog)
          ?buttonLayout 'Close
          ))
    
      ));SKILL++ closure
    
    (example_gui)

    Cheers,
    Aurel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Albertyu
    Albertyu 23 days ago in reply to Aurel B

    thanks your reply, appreciate.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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