• 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 get a pop-up in foreground (when LibMgr refreshes...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 16977
  • 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 get a pop-up in foreground (when LibMgr refreshes)

Matth83
Matth83 over 12 years ago

 Hello,

 I'm adding some menus in the library manager to get an SVN plug-in (based on some scripts from Poojan Wagh) and everything's going fine apart for the display of the pop-up forms. They appear where the mouse is clicked but always behind the Library Manager... quite unpractical!

 I've made some trials and it seems the form pops-up in foreground but LibMgr refreshes right after.

So in the cdsLibMgr.il, adding the menu looks like this 

lmgrCreateMenuItem("Menu_svnStLib" "simple"
  '(("label" "SVN Status")
    ("callback" ("svnStLib" "updateIf"))
;    ("callback" ("svnStLib" "noOpts" ))
  )
)
lmgrAddMenuItems("designCascade" "L" '("Menu_svnStLib"))

and in the procedure itself (buttons defined in the 1st "..."):

    procedure(svnStLib(reason Lib Cell View file cat)

...

svnStLibForm = hiCreateAppForm(
   ?name `svnStLibForm
   ?fields list(newLibField newStTypeButton newAdexlButton newbrowser)
   ?formTitle "Status Library"
   ?callback "svnStLibFormCB( svnStLibForm )"
   ?dontBlock t
      )

...

hiDisplayForm( svnStLibForm '(-1 -1) )
;    svnStLibForm->refresh
) ; end of procedure

Now, I've tried with and without the refresh; with it, I get directly my form behind the LibMgr and without I get a pop-up for a refresh and when clicking ok, then my form appears in foreground... thus I think that the refresh (which has to happen at the end of the procedure) may be the cause for this...

I've also tried to put "noOpts" instead of "updateIf" in the createMenuItem of the cdsLibMgr.il; then I don't need any refresh in the procedure anymore, but my form still appears in the background instead of the foreground.
Last point, when copying several times (3x) the line with hiDisplayForm(), I get the form still in background but with focus (i.e. I can change the fields directly from keyboard eventhough I don't see the whole form).

I admit I'm a bit lost about this Display behavior. Is anybody familiar with this?

 Thanks in advance,
Matthieu

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

    My guess is that this is something to do with the "focus stealing prevention" behaviour of your window manager (don't know whether you're using KDE or Gnome or something else) - that's a common cause of popup forms not appearing at the front. It's not really Virtuoso's fault.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    My guess is that this is something to do with the "focus stealing prevention" behaviour of your window manager (don't know whether you're using KDE or Gnome or something else) - that's a common cause of popup forms not appearing at the front. It's not really Virtuoso's fault.

    Andrew.

    • 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