How to prevent xBrowse to move right after pressing Enter?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
Una idea
y si al final de la validación devuelves el foco a la misma columna.
y si al final de la validación devuelves el foco a la misma columna.
Code: Select all
......
oCol:bOnPostEdit = { | oCol, xVal, nKey | If( nKey == VK_RETURN, (....,oBrw:GoToCol( oCol )) ,) }
.....
Saludos
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
LEANDRO ALFONSO
SISTEMAS LYMA - BASE
Bogotá (Colombia)
[ FWH 19.09 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20190613) ] [ Embarcadero C++ 7.30 for Win32 ]
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
Enrico,
The test keeps the selected cell- columnposition after celledit
regards
Uwe
The test keeps the selected cell- columnposition after celledit
Code: Select all
LOCAL nColPos := 1
...
...
WITH OBJECT oBrw
FOR I := 1 TO 5 // total defined columns
:aCols[I]:nEditType := EDIT_GET
:aCols[I]:bOnPostEdit := { | oCol, xVal, nKey | ;
nColPos := oBrw:SelectedCol():nCreationOrder, ;
oBrw:SelectCol(nColPos) }
NEXT
oBrw:CreateFromCode()
END
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
Unfortunately, I need this without using EDIT_GET.
EMG
EMG
Re: How to prevent xBrowse to move right after pressing Enter?
Have you tried with lEnterKey2Edit := .T. and/or nMoveType := 5 ?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
Sorry, it doesn't work. Selection keeps moving right when I press Enter.
EMG
EMG
Re: How to prevent xBrowse to move right after pressing Enter?
Christobal,
regards
Uwe
sample xbposte-prg is showing the different tests using oBrw:nMoveTypeHave you tried with lEnterKey2Edit := .T. and/or nMoveType := 5 ?
regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
Code: Select all
oBrw:bKeyChar := { |n| If( n == VK_RETURN, 0, nil ) }
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How to prevent xBrowse to move right after pressing Enter?
In that sample, try to change this
and you will see that pressing Enter, the selection moves to the righ regardless of nMoveType.
How to stop this behavior?
EMG
Code: Select all
o:nEditType := 0
How to stop this behavior?
EMG
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: