Skip to main content
1-Visitor
August 20, 2013
Question

Enable/disable XUI Button

  • August 20, 2013
  • 2 replies
  • 823 views
Hello experts, amateurs and everybody!! 😃

I have been investigating about how to enable or disable an XUI button.
I was thinking that maybe this is possible using the dlgitem_set()
command, however I'm not pretty sure how to do it 😞 Does anybody know
more about this area? Thank you so much in advance.

Paulette Zorrilla

    2 replies

    1-Visitor
    August 20, 2013
    Assuming the button will always display but be active or inactive based on
    some logic, I use:

    dlgitem_activate($win, $button_id)
    dlgitem_deactivate($win, $button_id)

    If showing and/or hiding the button entirely is your goal, that's
    different. My code above will "gray" the button when it is deactivated and
    make it non-user-selectable.



    On Tue, Aug 20, 2013 at 2:22 PM, paulette zorrilla <
    paulette.zorrilla@oracle.com> wrote:

    > Hello experts, amateurs and everybody!! 😃
    >
    > I have been investigating about how to enable or disable an XUI button.
    > I was thinking that maybe this is possible using the dlgitem_set()
    > command, however I'm not pretty sure how to do it 😞 Does anybody know
    > more about this area? Thank you so much in advance.
    >
    > Paulette Zorrilla
    >
    pzorrilla1-VisitorAuthor
    1-Visitor
    August 21, 2013

    Paul, thank you so much. It works! What I was needing is was only to enable or diable the button.


    Regards.


    Paulette Zorrilla