closing a dialog box by skill

Discussion in 'Cadence' started by bedoune, Mar 3, 2008.

  1. bedoune

    bedoune Guest

    hi,

    In my skill, i need to refresh my library.
    so i use the function "ddsHiRefresh()".

    but this function generates a popup window that i can not kill with
    hiDBoxOK().

    Actually, i'm not sure to get the correct name of the pop up window,
    maybe that's why i can not kill it !

    So, could anyone tell me how to get the correct name of my popup
    window ?

    thanks for your help,

    b.
     
    bedoune, Mar 3, 2008
    #1
  2. bedoune

    Riad KACED Guest

    Hi !

    if you try the following function into your CIW :
    hiFormList()
    You will see there is a form symbol called "ddsRefreshForm", I guess
    it's the one you are looking for !
    If you then type hiFormFinish(ddsRefreshForm), I think it should close
    your window. Give it a try ...
    I think you can use hiFormDone or hiFormClose as well. Please look at
    the doc to see the difference !

    Good luck ;-)

    Riad.
     
    Riad KACED, Mar 3, 2008
    #2
  3. Riad KACED wrote, on 03/03/08 13:45:

    hiRegTimer("hiFormDone(ddsRefreshForm)" 0) ddsHiRefresh()

    will do it. Something similar came up in this forum recently...

    This tells SKILL to do the "form done" 0 tenths of a second after the UI has
    returned - so that it can be done on the blocking ddsHiRefresh() form.

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 3, 2008
    #3
  4. bedoune

    bedoune Guest

    hi,

    thanks for your answers.

    Unfortunately, none of these solutions work. My popup window freeze
    completely the rest of the program. Clicking "ok" is the only thing i
    can do ...

    i tried :
    hiRegTimer("hiFormDone(ddsRefreshForm)" X) ddsHiRefresh() , with
    different values for X.

    which is the solution given by Andrew. but it doesn't work. Indeed,
    this solution was given in a previous topic. I also found the "hack
    code" to kill popups , but i don't want to use it because i don't
    understand it.

    so, i don't know how to kill this popup. Maybe ddsHiRefresh is not the
    only way to refresh ? or maybe there's an option to use it in silent
    mode ?

    Thanks for your help.

    b.
     
    bedoune, Mar 4, 2008
    #4
  5. bedoune

    Joel Guest


    Perhaps you are dealing with a different popup?

    What I do when I need to solve this problem is click OK to dismiss the
    window and then look in my CDS.log file. Usually the name of the
    command needed to close the window/form/dialog appears as the last
    command. I did a quick experiment with ddsHiRefresh and found that it
    triggered a modal popup telling me there was no data to refresh. I
    closed it and noted the following in my CDS.log:

    hiDBoxOK(ddsDBox).

    I then used Andrew's trick to close the window:
    hiRegTimer("hiDBoxOK(ddsDBox)" 0)
    ddsHiRefresh()

    Even if you have a different dialog you can figure out the name of it
    from the log file (though this may have a dependency on the log filter
    setting).

    I hope that helps.

    Joel
     
    Joel, Mar 4, 2008
    #5
  6. bedoune

    Guest Guest

    Just to clarify, the log filter setting only affects what is displayed to the
    CIW. It doesn't filter what is put in the log file, which is everything.

    -Pete Zakel
    ()

    "Monday is an awful way to spend one seventh of your life."
     
    Guest, Mar 4, 2008
    #6
  7. bedoune

    bedoune Guest

    Hi,

    thanks to all for your answers.

    My problem of popup was located between the keyboard and the chair.

    Now, all is fine ^^v

    regards,

    b.
     
    bedoune, Mar 6, 2008
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.