Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Double Clicking the I/o box

Former Member
0 Kudos

How can i make an I/O Box work on double click

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hopen this helps

1. Have a program with a screen.

2. Using the screen painter, insert an element on the screen and double click on the element. this will give you a pop-up where you can specify the element attributes.

3. In the bottom half of this pop-up, there are three kinds of attributs you can specify on various tabs. choose the tab "Display".

4. On the above tab, there's a checkbox called "Responds to Double Click". Select this checkbox. This will enable the screen field to respond to double click (in case you make the field "display only", then it will be a hotspot on the screen!! Isn't that a cool one? ).

5. Now, we are not done yet. For this screen, in the PBO you need to specify a GUI status. And in that GUI status, there should be a Function Code called "PICK". (FYI, PICK is the function code that gets triggerred when you double click a list line).

6. And Lo! when you call the screen, you can see that the field responds to double click. Of course, in your PAI event, you need to write some code for the Function Code PICK.

Regards,

navjot sharma

Further Hints: In case you have several fields on your screen which you want to respond to double click, you can find out which field was clicked on by using the statement GET CURSOR FIELD.

reward points for all helpfull answers

Message was edited by:

navjot sharma

1 REPLY 1

Former Member
0 Kudos

hopen this helps

1. Have a program with a screen.

2. Using the screen painter, insert an element on the screen and double click on the element. this will give you a pop-up where you can specify the element attributes.

3. In the bottom half of this pop-up, there are three kinds of attributs you can specify on various tabs. choose the tab "Display".

4. On the above tab, there's a checkbox called "Responds to Double Click". Select this checkbox. This will enable the screen field to respond to double click (in case you make the field "display only", then it will be a hotspot on the screen!! Isn't that a cool one? ).

5. Now, we are not done yet. For this screen, in the PBO you need to specify a GUI status. And in that GUI status, there should be a Function Code called "PICK". (FYI, PICK is the function code that gets triggerred when you double click a list line).

6. And Lo! when you call the screen, you can see that the field responds to double click. Of course, in your PAI event, you need to write some code for the Function Code PICK.

Regards,

navjot sharma

Further Hints: In case you have several fields on your screen which you want to respond to double click, you can find out which field was clicked on by using the statement GET CURSOR FIELD.

reward points for all helpfull answers

Message was edited by:

navjot sharma