TOPIC: BrowseControl and Del key
#1072
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?

thanks

Claudio
 
 
#1074
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:

Code:

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



Or

Code:

List_DeleteKeyDown()
    {
    Print('list delete key down')
    return true
    }



Hope this helps.
 
 
#1134
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

www.suneido.com/index.php?option=com_fir...=162&catid=3#162

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