cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Enable/disable XUI Button

pzorrilla
1-Newbie

Enable/disable XUI Button

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 2

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
>

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


Regards.


Paulette Zorrilla

Top Tags