oLbx:bKeyDown:= {|nK| if( nK==VK_RETURN, oDlg:End(), ) }

Post Reply
User avatar
RuFer
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

oLbx:bKeyDown:= {|nK| if( nK==VK_RETURN, oDlg:End(), ) }

Post by RuFer »

Amigos:

No me funciona en los Browses esta funcion que si me funcionada antes.

Alguna sugerencia?

Saludos y gracias

Ruben Fernandez
FWH 2.7, Harbour
User avatar
Antonio Linares
Site Admin
Posts: 42753
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 111 times
Been thanked: 108 times
Contact:

Post by Antonio Linares »

Ruben,

Este ejemplo funciona con el build 2.7 de marzo:

Code: Select all | Expand

#include "Fivewin.ch" 


FUNCTION MAIN()

    LOCAL oDlg, oBrw

    DEFINE DIALOG oDlg

    @ 1, 1 LISTBOX oBrw FIELDS SIZE 100, 30

    oBrw:bKeyDown:= {|nK| if( nK==VK_RETURN, ( MsgInfo(), oDlg:End() ), ) }
   
    @ 3, 1 BUTTON "&Close";
           ACTION oDlg:End()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
RuFer
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Post by RuFer »

Gracias Maestro:

Aparentemente tenía declarado nk:=LastKey()
y esto era lo que me complicaba.

Gracias y saludos.

Ruben Fernandez.
Post Reply