Page 1 of 1

A message in xBrowse => keys : left, right,up and down ??

Posted: Mon Jan 21, 2008 12:20 pm
by ukoenig
Hello from Germany,

I used < bKeydown > and < bKeychar > in xBrowse
to get a keycode for the keys : LEFT, RIGHT, UP, DOWN
but it only works with < normal > keys like
13 = RETURN and so on.
Is it possible somehow, to get a information, when
i press one of these keys in xBrowse ?

I want to start a special action.
sample : cursor-pos = end of array (eof() ).
I press the key < DOWN > and append a new
array-element.
For that i must know, that < DOWN > was pressed.

Thank you :lol:
U. König

Posted: Mon Jan 21, 2008 2:48 pm
by nageswaragunupudi
Please use the codeblock oBrw:bPastEof for this purpse. Example:

Code: Select all


   oBrw:bPastEof  := {||if( MsgNoYes( 'Add Row?' ), ;
            ( AAdd( oBrw:aArrayData, ATail( oBrw:aArrayData ) ), oBrw:GoBottom()), nil )}

Posted: Mon Jan 21, 2008 7:15 pm
by Otto
Hello Uwe,
maybe you have the same problem I had:

http://fivetechsoft.com/forums/viewtopi ... light=vkey
Regards,
Otto