Home > Community > Forums > PCB SKILL > Disable a popup menu item!

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: *

 Disable a popup menu item! 

Last post Tue, Dec 1 2009 1:23 AM by lhansheng. 4 replies.
Started by lhansheng 28 Nov 2009 10:27 PM. Topic has 4 replies and 2020 views
Page 1 of 1 (5 items)
Sort Posts:
  • Sat, Nov 28 2009 10:27 PM

    • lhansheng
    • Not Ranked
    • Joined on Sat, Nov 28 2009
    • Posts 5
    • Points 85
    Disable a popup menu item! Reply

    Hello!

    Tell me please, how to disable a item of my popup menu?

    Thank you very much!

    Filed under: , ,
    • Post Points: 20
  • Sun, Nov 29 2009 4:42 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 738
    • Points 16,055
    Re: Disable a popup menu item! Reply

    See the documentation for axlUICmdPopupSet

    Dave Elder, Tait Communications
    • Post Points: 20
  • Sun, Nov 29 2009 9:47 PM

    • lhansheng
    • Not Ranked
    • Joined on Sat, Nov 28 2009
    • Posts 5
    • Points 85
    Re: Disable a popup menu item! Reply

    Hi eDave!

    Thank you for your help. Now, I have a question about  axlUICmdPopupSet. This function modifies the behavior of axlUIPopupSet so that it makes unavailable all popup items not in the defined popup. If i want to make popup meun item available but greyed, what should I do?

    I am looking forward to your reply!

     

    • Post Points: 20
  • Mon, Nov 30 2009 8:03 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 738
    • Points 16,055
    Re: Disable a popup menu item! Reply

    Just include the items that you want avilable in the defined group - the rest will be greyed out.

    Here is a real example:

    popupid = axlUIPopupDefine(nil, '(
     ("Done" "AFT_done(AFT_formID)")
     ("Oops" "AFT_oops(AFT_formID)")
     ("Cancel" "AFT_cancel(AFT_formID)")
     ("Next" "AFT_next(AFT_formID)")
     ("MENU_SEPARATOR" nil)
     ("Reject" "AFT_reject(AFT_formID)")
      ))
      axlUICmdPopupSet(popupid)
      popGrayId = axlUIPopupDefine( nil '(
     ("Done" "AFT_done(AFT_formID)")
     ("Cancel" "AFT_cancel(AFT_formID)")
     ("Next" "AFT_next(AFT_formID)")
      ))
      axlUIPopupSet(popGrayId)

    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Dec 1 2009 1:23 AM

    • lhansheng
    • Not Ranked
    • Joined on Sat, Nov 28 2009
    • Posts 5
    • Points 85
    Re: Disable a popup menu item! Reply

    I get it. Thank you very much!

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by lhansheng at 28 Nov 2009 10:27 PM. Topic has 4 replies.