Home > Community > Forums > PCB SKILL > Can't get popup to gray Oops

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Can't get popup to gray Oops 

Last post Fri, Apr 19 2013 7:16 AM by aCraig. 2 replies.
Started by aCraig 17 Apr 2013 12:22 PM. Topic has 2 replies and 589 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Apr 17 2013 12:22 PM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Can't get popup to gray Oops Reply

    I have a popup definition like this:

    (setq userData (axlUIGetUserData))
      (putprop userData userData->popupId 'oldPopup)
     
      (setq popupList (axlSelectPopupList))
      (setq popupList (cons (list "Next" 'CAL_cvnNext) popupList))
      (setq popupList (cons (list "Cancel" 'CAL_cvnCancel) popupList))
      (setq popupList (cons (list "Oops" 'CAL_cvnOops) popupList))
      (setq popupList (cons (list "Done" 'CAL_cvnDone) popupList))

      (setq popupFull (axlUIPopupDefine nil popupList))
      (putprop userData popupFull 'popupFull)

      (setq popupList (axlSelectPopupList))
      (setq popupList (cons (list "Cancel" 'CAL_cvnCancel) popupList))
      (setq popupList (cons (list "Done" 'CAL_cvnDone) popupList))

      (setq popupNoOops (axlUIPopupDefine nil popupList))
      (putprop userData popupNoOops 'popupNoOops)

      ;Now activate the initial popup with "Oops" and "Next" grayed out
      (axlUICmdPopupSet popupFull)
      (axlUIPopupSet popupNoOops)

    When this code is executed the popup will have Next and Oops grayed out, When a start transaction occurs I execute (axlUIPopupSet popupFull) and nothing is grayed out. If I rollBack this transaction and there are no more transactions to roll back I execute (axlUIPopupSet popupNoOops). But it doesn't gray out Next or Oops.

     Anyone with any ideas on why it's not graying out Next or Oops?

    Thanks,

    Craig

    • Post Points: 20
  • Thu, Apr 18 2013 8:08 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 736
    • Points 15,930
    Re: Can't get popup to gray Oops Reply
    Hi Craig,

    I haven't had a good look at your code yet but check for the declaration of
    local variables. You may need to declare your transaction mark variable
    (and others) as global.

    Cheers,
    Dave
    Dave Elder, Tait Communications
    • Post Points: 20
  • Fri, Apr 19 2013 7:16 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 132
    • Points 2,070
    Re: Can't get popup to gray Oops Reply

    Hi Dave,

    I build a smaller test case and got it to work. Now I just need to translate that back to the orignal program.

    Thanks,

    Craig

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by aCraig at 17 Apr 2013 12:22 PM. Topic has 2 replies.