TOPIC: BrowseControl and Del key
BrowseControl and Del key 2 Years, 7 Months ago
How i can trap a "Del key" pression(key down) in a browsecontrol window to force immediatly the deletion of the selected record and to refresh the browse to not display the deleted record?

i do not want to use the standard "Save All" choice in the right click menu on the browse window

any suggestion?


Re:BrowseControl and Del key 2 Years, 7 Months ago
The BrowseControl sends a "Browse_DeleteRecord" message when the delete key is pressed that you could probably use to do the delete. You could also use the "BrowseData_Changed" message and check if the "listrow_deleted" field in the record is true.

If you really want to trap the delete key press, you can use the following methods:


List_KeyDown(wParam, lParam)
    if wParam is VK.DELETE
        Print('delete key')



    Print('list delete key down')
    return true

Hope this helps.
Re:BrowseControl and Del key 2 Years, 6 Months ago
i used a solution similar to that described in this topic
to trap delete event and process it

Saving each row in a BrowseControl

Last Edit: 2008/02/20 17:29 By sunadmin. Reason: update forum link