Autor Tema: ucListView KeyPress  (Leído 2827 veces)

0 Usuarios y 1 Visitante están viendo este tema.

bebekbdg

  • Bytes
  • *
  • Mensajes: 15
  • Reputación: +0/-0
    • Ver Perfil
ucListView KeyPress
« en: Abril 17, 2011, 05:32:18 pm »
i use UcListView http://www.leandroascierto.com.ar/categoria/Proyectos/articulo/Proyecto_2.php . How do I use for the event keypress to deliver value = F5, Delete
« última modificación: Abril 17, 2011, 05:36:06 pm por bebekbdg »

bebekbdg

  • Bytes
  • *
  • Mensajes: 15
  • Reputación: +0/-0
    • Ver Perfil
Re:ucListView KeyPress
« Respuesta #1 en: Abril 17, 2011, 05:56:16 pm »
 
Código: [Seleccionar]
                Case WM_KEYUP
               
                    If (wParam And &H7FFF&) = &H74 Or (wParam And &H7FFF&) = &H2E Then
                        RaiseEvent KeyPress(wParam And &H7FFF&)
                    End If
                   
                    RaiseEvent KeyUp(wParam And &H7FFF&, pvShiftState())
whether the code that I made ​​this modification has been good. or there is a better?
because when i press Delete With Msgbox cursor not selected.
« última modificación: Abril 17, 2011, 06:07:40 pm por bebekbdg »

raul338

  • Terabyte
  • *****
  • Mensajes: 894
  • Reputación: +62/-8
  • xD fan!!!!! xD
    • Ver Perfil
    • Raul's Weblog
Re:ucListView KeyPress
« Respuesta #2 en: Abril 20, 2011, 06:40:56 am »
KeyPress only works with common keys (letters and digits). For every key use KeyDown or KeyUp

bebekbdg

  • Bytes
  • *
  • Mensajes: 15
  • Reputación: +0/-0
    • Ver Perfil
Re:ucListView KeyPress
« Respuesta #3 en: Abril 25, 2011, 10:10:15 pm »
thank you boss. turns out the problem was there ... :)  ;D ;D