• 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. How to detect a current form change

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 13742
  • 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

How to detect a current form change

Sutlieff
Sutlieff over 5 years ago

Hi,

I have  a form (using hiCreateLayoutForm)  invoked from layout A (GUI1) . I have a second form invoked from layout B (GUI2). 

GUI2 is currently the active form 

I would like to detect when the user has clicked back into GUI1.

Has anyone got an idea how to do this?

The closest I got was to use ?focusInCallback  when creating a string field ( hiCreatestringField).

When clicking in this string field I could jump to my procedure and then get the new form with hiGetCurrentForm().

I was looking for something that detected when I  clicked anywhere on a form.

Colin

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Colin,

    I don't believe this exists in an easy fashion. Why would you need it? There's a clunk workaround which would be to use hiRegTimer to regularly check whether hiGetCurrentForm() changes and call your own trigger when it changes, but I'm not sure I like using a polling approach to do this.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sutlieff
    Sutlieff over 5 years ago in reply to Andrew Beckett

    Hi Andrew,

    thanks for the info.

    There is, in fact, another (different) form (only one instance) that gets populated with data from the active form. I didn't mention this in the original post.

    This is not a very elegant way, I admit, and in the future, I'll put put all the data into the one main GUI using tabs, not spread the data between 2 forms

    I guess that the QT framework can detect window changes but not SKILL.

    Colin

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Sutlieff
    Sutlieff over 5 years ago in reply to Andrew Beckett

    Hi Andrew,

    thanks for the info.

    There is, in fact, another (different) form (only one instance) that gets populated with data from the active form. I didn't mention this in the original post.

    This is not a very elegant way, I admit, and in the future, I'll put put all the data into the one main GUI using tabs, not spread the data between 2 forms

    I guess that the QT framework can detect window changes but not SKILL.

    Colin

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Sutlieff

    Hi Colin,

    Actually SKILL does have support for a trigger for detecting window changes (hiRegCurWindowTrigger), but this is for windows not the transient windows used in forms. Also, it's actually when the window becomes current which is not quite the same as receiving focus.

    As you say though, not all of the underlying capabilities of the Qt framework are exposed in SKILL.

    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