1. Carlos Romero
  2. PowerBuilder
  3. Tuesday, 26 December 2017 18:30 PM UTC

How can I make a shortcut key in .NET powerbuilder?
or at least with that I replaced it.

Como puedo hacer un shortcut key en powerbuilder .NET o por lo menos con que lo reemplazo que funcione igual.

Thank You / Gracias

 

 

Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 December 2017 01:26 AM UTC
  2. PowerBuilder
  3. # 1

Hi Carlos,

 

This seems to be a known issue in PB .Net (https://apps.support.sap.com/sap/support/knowledge/preview/en/2117924). This window event (systemkey) is marked as supported in Appeon PowerServer. I would suggest trying a combination that would not use the ALT key.

 

Regards,

 

Hola Carlos:

 

Este parece ser un problema conocido ya en PB .NET (https://apps.support.sap.com/sap/support/knowledge/preview/en/2117924). Este evento de ventana (systemkey) está marcado como soportado en Appeon PowerServer. Yo te puedo recomendar no utilizar la tecla ALT como combinación.

 

 

Saludos,

Comment
  1. Carlos Romero
  2. Thursday, 28 December 2017 15:49 PM UTC
Saludos Govinda



​No es por la tecla ALT es que al compilar no soporta ni el evento KEY ni el SYSTEMKEY, con que lo puedo suplantar y poder usar por ejemplo el F1 o cualquier tecla de funcion, recuerda que en la web al darle F1 te manda para la ayuda.



Gracias

  1. Helpful
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 27 December 2017 07:12 AM UTC
  2. PowerBuilder
  3. # 2

Hello Carlos,

if you want to assign shortcut keys to menu objects, you can simply take any menu item and go to property -> general -> shortcut key.

Otherwise, you can use the KeyDown() function from any PowerScript to test for a specific key.

Finally, you can also use the SystemKey event to check if the user presses the Alt key (alone or with another key).

HTH,

Marco

Comment
  1. Carlos Romero
  2. Wednesday, 27 December 2017 16:24 PM UTC
Hi Marco



When I place the shortcut key or when I use keydown() it tells me that it is not supported by the .net version when compiling.



Remember please is .NET



Thanks



 ---------- Unsupported features:    (11:22:33 AM)

d:\zoo\zooappwf\zoonet.pbl(w_arranca).systemkey.   Event "systemkey" of window is not supported.

 ---------- Finished    (11:22:33 AM)



 

  1. Helpful
  1. Marco Meoni
  2. Wednesday, 27 December 2017 21:19 PM UTC
I know, but since you pointed out "...or at least with that I replaced it..." I supposed you knew that PB .NET is dead and PB2017 is the only way to go.



So my suggestions refer to PB 2017 (or to the older PB "Classic").



Cheers,



Marco

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.