Clarion 11.1: Catch double-click on browse/list with CHT HandyMarkerBrowse
I have a browse with CHT HandyMarkerBrowse added.
Because Gus is no longer available, I need to find another solution.
I had to replace the original ?Change button with my own PowerTemplate button. When I removed the original ?Change button, double-click no longer called the update/change logic. At first the original button was only hidden, but now it is removed.
I want to catch a double-click on the browse and call my own procedure.
In NewSelection I tried:
db.debugout(‘List:6’)
db.debugout(KEYCODE(),‘KEYCODE()’)
IF FIELD() = ?List:6
IF KEYCODE() = MouseLeft2
MESSAGE(‘Double click detected’)
END
END
But KEYCODE() returns 1 for both single-click and double-click.
If I scroll up/down I get 38 and 40, so KEYCODE() works for keyboard navigation.
Question:
Is KEYCODE() in EVENT:NewSelection simply the wrong way to catch a double-click on a browse/list?
What is the correct embed point/code to catch MouseLeft2 on ?List:6 and call my own change procedure?