03-29-2007 12:09 PM
03-29-2007 12:20 PM
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
03-29-2007 12:20 PM
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