cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically disable/enable a button in a GUIBB form?

Former Member
0 Kudos

Is there any possibility to dynamically disable and enable a button within a GUIBB form? In its simplest form I want to disable (make invisible) a button, when another button is pushed. So I have an event that is caught in process_event. Now I need to access the GUIBB, access its button and make it invisible.

Best regards,

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Aliaksandr
Active Participant
0 Kudos

Hi Thomas,

Try to use method GET_DATA. Buttons properties can be changed via CT_ACTION_USAGE parameter (don't forget to set flag EV_ACTION_USAGE_CHANGED).

Kind regards, Aliaksandr.

Former Member
0 Kudos

Thanks Aliaksandr, exactly what I've search for!

Thomas

Answers (1)

Answers (1)

Former Member
0 Kudos


Hi Thomas,

You don't have to access GUIBB seperately if you raise an event thourgh the button which belongs from the same GUIBB. Then try to use method GET_DATA and all the buttons properties( Enable/Disable , Visible/Invisible ) can be changed from  changing parameter CT_ACTION_USAGE, finally set the flag EV_ACTION_USAGE_CHANGED.

Thanks

Praveen Gupta