‎2007 Sep 06 10:58 AM
Hi All,
I have 3 Text boxes placed on screen 100. Now I want to activate double click event on only one text box.
3 Text boxes are txt1, txt2 and txt3.
I have assigned Attribute 'Respond to double click' to txt1 and I have also set the GUI Status F2 'PICK'.
Now the problem that I am facing is whenever I double click on txt1 the program is working fine but this event works for txt2 and txt3 also which I don't want.
Can anyone provide the solution,
Thankx in Adv.
‎2007 Sep 06 12:01 PM
Hi Sanjay,
What you have done is absolutely fine.
Just add the code to check for the input box on which the double click was performed.
<b>IN THE PAI:</b>
<b>GET CURSOR FIELD</b> tfield.
-> This statement captures the field name on which the user action (in this case the double click) was performed.
<b>IN THE PBO:</b>
Have a check for the field on which the double click was performed.
<b>CASE OKCODE.</b>
<b>WHEN 'PICK'.</b> <i>" The value of Okcode you have set in the pf-status</i>
<b> IF </b>tfield<b> = 'TEXT1'.</b> <i>"Use the name of text box where you have set 'respond to double click'</i>
<i><code for whatever you need to perform></i>
<b>ENDIF.</b>
<b>ENDCASE.</b>
Hope this solves your problem!
<i><b>*Reward Helpful Answers*</b></i>
Regards,
<b>Naveenan</b>
‎2007 Sep 06 12:01 PM
Hi Sanjay,
What you have done is absolutely fine.
Just add the code to check for the input box on which the double click was performed.
<b>IN THE PAI:</b>
<b>GET CURSOR FIELD</b> tfield.
-> This statement captures the field name on which the user action (in this case the double click) was performed.
<b>IN THE PBO:</b>
Have a check for the field on which the double click was performed.
<b>CASE OKCODE.</b>
<b>WHEN 'PICK'.</b> <i>" The value of Okcode you have set in the pf-status</i>
<b> IF </b>tfield<b> = 'TEXT1'.</b> <i>"Use the name of text box where you have set 'respond to double click'</i>
<i><code for whatever you need to perform></i>
<b>ENDIF.</b>
<b>ENDCASE.</b>
Hope this solves your problem!
<i><b>*Reward Helpful Answers*</b></i>
Regards,
<b>Naveenan</b>
‎2007 Sep 07 9:37 AM
Hi Sanjay ,
You have got a right answer above. You can assign function code 'PICK' in the
PF STATUS and then assign this to a pf key ..finally handle the code .
regards,
Ranjita