xBrowse-celledit => a col / row -reset on defined key ?

xBrowse-celledit => a col / row -reset on defined key ?

Postby ukoenig » Thu Jun 11, 2015 9:02 am

Hello,

I have a xBrowse-matrix can be added from keyboard.
What is the best solution for a linebreak on any position to the next row to col 5 ?

reaching day 31, I defined a linebreak to the next row
that works fine.
I still need a line-break on any col-position using a key like < space > or < esc >
( only keyboard-usage )

I tested / added on a cell :
to the nKey-define => If( nKey == VK_RETURN, ;
...
...
If( nKey == VK_SPACE, ( oBrw2:GoDown( 1 ), oBrw2:SelectCol(5) ),), ;
but didn*t work

Day 31

oCol:nEditType := EDIT_GET
oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN, ;
( PREIS_SAVE(xVal, 31, "T31",cMonat), ; // val, position, fieldname, dbf / alias
oBrw2:RefreshCurrent(), ;
oBrw2:GoDown( 1 ), ;
oBrw2:SelectCol(5)
),) }


Image

best 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse-celledit => a col / row -reset on defined key ?

Postby Silvio.Falconi » Thu Jun 11, 2015 10:31 am

Imade some thing on Orario application

nora:=alltrim(str(oBrw:nRowSel))
ngiorno:=alltrim(str(oBrw:nColSel-1))
oBrw:SelectedCol():Value := OR->CLASSE
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6784
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron