Capture a Double Click
-
- Profound User
- Posts: 80
- Joined: Mon Apr 20, 2009 11:26 am
- First Name: Devin
- Last Name: St. Germain
- Company Name: Dupre Logistics, LLC
- Phone: 337.314.2259
- Address 1: 201 Energy Pkwy. Ste. 500
- City: Lafayette
- State / Province: Louisiana
- Zip / Postal Code: 70508
- Country: United States
- Contact:
Capture a Double Click
I have two list box and would like to transfer data from one list box to the other on a double click. Can someone tell me how to capture the double click and have it pass control back to the RPG program?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Capture a Double Click
Try putting a button onto the screen and setting it to hidden. Give the button a unique id (using its "id" property), maybe "btnDblClick".
Then, you can set the "ondblclick" event of the list box to this:
This will simulate a click on the button, which will submit the screen to the server. You can also bind a response indicator to the button, if you want, to distiguish this submit from some other way of submitting the screen.
Then, you can set the "ondblclick" event of the list box to this:
Code: Select all
pui.click("btnDblClick");
Who is online
Users browsing this forum: No registered users and 4 guests