| View previous topic :: View next topic |
| Author |
Message |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Thu Aug 24, 2006 12:26 pm Post subject: SuppressBUTTON event |
|
|
Hi, VDSWorld
Single a question:
Somebody knows how to include in a dialogue a button that responds to the key "Suppress" ("Sup", not "Del")?
Thanks in advance.
____________
uVeDeSe |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Aug 24, 2006 2:13 pm Post subject: |
|
|
Do you mean on the keyboard? I have no such key called Suppress on my keyboard.
You may try using the Windows api GetAsyncKeyState to see when keys are pressed.
Checking the Win32 Programmer's Reference from Microsoft shows no virtual keycode for suppress, however it's likely this key is OEM specific?
Or maybe it's one of these buttons below?
| Code: | key vkeycode hex
BACKSPACE VK_BACK 08
CLEAR VK_CLEAR 0C
CANCEL VK_CANCEL 03
PAUSE VK_PAUSE 13
ESCAPE VK_ESCAPE 1B |
|
|
| Back to top |
|
 |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Thu Aug 24, 2006 5:52 pm Post subject: |
|
|
Thanks PGWARE, I found what looked for.
In case to somebody it serves to him:
| Code: | | %%button = @lib(user32,GetKeyState,int:,46) |
%%button will have a value smaller than 0 if the "delete" key has been pressed ("suppress" or "suprimir" in Spanish)
________________
uVeDeSe |
|
| Back to top |
|
 |
|