PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → How can i trigger the DELETE button in a table
How can i trigger the DELETE button in a table
Iniciado por J. Flietstra, set., 28 2004 3:45 PM - 4 respostas
Publicado em setembro, 28 2004 - 3:45 PM
How can i trigger the DELETE button in a table.
Publicado em setembro, 28 2004 - 4:36 PM
Hi,
what kind of delete button do you mean? Would ExecuteProcess(yourButton, trtClick) do the job?
Raimund
>How can i trigger the DELETE button in a table.


http://www.invitec.com
Publicado em setembro, 28 2004 - 4:47 PM
Hi,
what kind of delete button do you mean? Would ExecuteProcess(yourButton, trtClick) do the job?
Raimund
How can i trigger the DELETE button in a table.

no.. when i press in a table the delete button on the keyboard, i want to trigger that and then execute somthing.
Publicado em setembro, 28 2004 - 5:30 PM
Hi,
two ways to go:
a) Event("YourDelHandlingProcOrMethod", YourTable, WM_KEYDOWN)
PROCEDURE YourDelhandlingProcOrMethod(nMsg, wParam, lParam)
// Check your keyboard code and do what you want: wParam contains the keycode
b) Click on the "..." button in the code view of your table, switch WM_KEYDOWN to on and enter the following code:
IF _EVE.wParam = VK_DELETE THEN
Info("delete")
END
The first way has the advantage that you have a generic way and can be easily implemented in a class. The second solution is something for doing once in a table.
Raimund
Hi,
what kind of delete button do you mean? Would ExecuteProcess(yourButton, trtClick) do the job?
Raimund
How can i trigger the DELETE button in a table.
no.. when i press in a table the delete button on the keyboard, i want to trigger that and then execute somthing.



http://www.invitec.com
Publicado em setembro, 29 2004 - 3:27 AM
>How can i trigger the DELETE button in a table.
You can always set the shortcut - on the button Details tab - to operate with the delete key, and then set this in your models files so it happens each time you generate a window with a delete button.
Gill