• 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. Utilising a Form 'Help' Callback

Stats

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

Utilising a Form 'Help' Callback

kdolan
kdolan over 3 years ago

Hi,

I am having a little bit of confusion trying to implement a callback function for the 'Help' button in a form/GUI. I have looked at the Cadence Help documentation but I am likely not understanding it correctly. I have attached some simple code below whereby I have a form ( myImageGUI ) and I am trying to execute the myExampleHelpCB() when the user clicks the 'Help' button.

Any thoughts on where I am going wrong?

My end goal is when the user pushed the help button, it will pop up a PDF with the details relating to the specific Skill program.

Thanks,

Keelan


procedure(ImageExportGUI()
prog((cv cw imageView userFilePath userImageType userBGColour myImageGUI)

cv = geGetWindowCellView(hiGetCurrentWindow())
cw = hiGetCurrentWindow()

userFilePath = hiCreateStringField(
?name 'userFilePath
?prompt "File Path:"
?editable t
?value strcat(cv~>libName "_" cv~>cellName "_" cv~>viewName "_Design.png")
);hiCreateStringField

userImageType = hiCreateRadioField(
?name 'userImageType
?prompt "Image Scope: "
?choices list("Entire Design" "Visable Area")
?value "Entire Design"
);hiCreateRadioField

userBGColour = hiCreateRadioField(
?name 'userBGColour
?prompt "Background Colour: "
?choices list("Black" "White")
?value "Black"
);hiCreateRadioField

myImageGUI = hiCreateAppForm(
?name 'myImageGUI
?formTitle "Export Image GUI"
?fields
list(
list(userFilePath 0:0 500:30 90)
list(userImageType 0:35 100:0 90)
list(userBGColour 0:70 100:0 120)
)
?callback "adiExportImage(myImageGUI->userFilePath->value myImageGUI->userImageType->value myImageGUI->userBGColour->value)"
?buttonLayout 'OKCancelApply
);hiCreateAppForm

putprop('myImageGUI 'myExampleHelpCB() 'hiHelpAction)
hiDisplayForm(myImageGUI)

);let
);procedure

procedure(myExampleHelpCB()
prog(
()
printf("\nI've made it to the help callback function!")

);prog
);procedure

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Keelan,

    You simply need to make the hiHelpAction a string:

    putprop('myImageGUI "myExampleHelpCB()" 'hiHelpAction)

    It either needs to be a string (which is a full expression) or a symbol 'myExampleHelpCB, which means that it will be passed four arguments (according to the help). Your function doesn't have any arguments, so you need to use the string approach.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • kdolan
    kdolan over 3 years ago in reply to Andrew Beckett

    Ah yes silly me. Thanks for the help 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