BUTTON control in a datawindow object

Hi Everybody,
             Iam using PowerBuilder (Version 8).   I need a solution for a problem related to BUTTON control in a DATAWINDOW OBJECT.

            My questios are,  

1.      How can we make a BUTTON control in a datawindow object disable and enable.

2.      How can we set focus to a   BUTTON control in a datawindow object.

I need to implement the above functionality to a BUTTON control in a datawindow object which is dynamically genereated, so no chance of placing the window BUTTON control here.   Can anyone suggest solution for these problems.

           
Regards,

Ranjit
xsysysAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sajuksConnect With a Mentor Commented:
1>check the SuppressEventProcessing property:
dw_2.Object.cb_1.SuppressEventProcessing = "Yes"
The user will be able to click on it but the event wont be triggered.

"dw_control.Object.buttonname.SuppressEventProcessing"

2> focus is not possible
0
 
gajender_99Commented:
to make a object visible or enabled

//visible
dw_1.object.cb_1.visible=true

//enable

dw_1.object.cb_1.enable=true

//to get focus try

dw_1.object.cb_1.setfocus()

0
 
sajuksCommented:
@gajender_99  would that work for a button control in a datawindow ? in which version did u check taht code ?
0
 
sajuksCommented:
i belive i've answered correctly and i deserve some points
0
All Courses

From novice to tech pro — start learning today.