Page 1 of 1

xbrowse listbox

Posted: Mon Apr 22, 2019 8:17 am
by byte-one
I have a Listbox in xbrowse with items leading a,b,c,...
Now i will press z.B. c,... , the cursor turns to the third item and then i will automatically evaluate the bPostedit and leave the listbox to next cell!
Have anyone a solution for this?

Re: xbrowse listbox

Posted: Mon Apr 22, 2019 3:23 pm
by ukoenig
Günther,
I have a Listbox in xbrowse with items leading a,b,c,...
Now i will press z.B. c,... , the cursor turns to the third item and the
i will automatically evaluate the bPostedit and leave the listbox to next cell!
the solution You are looking for :?:
You can move to the next column or next row ( the sample moves to the next column and same row )

Image

1. a Listbox in xbrowse with items leading a,b,c
2. selected with dblclick or return. exit with esc or button
3. automatically evaluated the bPostedit and leaves the listbox to next cell


do You want to move to the next column ( focus ) or simply down to the next row :?:

regards
Uwe :D

Re: xbrowse listbox

Posted: Mon Apr 22, 2019 4:02 pm
by byte-one
Uwe,
2. selected with dblclick or return. exit with esc or button
only with type a or b..... WITHOUT to press return or dblclick.

Re: xbrowse listbox

Posted: Mon Apr 22, 2019 4:07 pm
by ukoenig
Günther,

to the next column or next row

regards
Uwe :?:

Re: xbrowse listbox

Posted: Mon Apr 22, 2019 4:08 pm
by byte-one
Uwe, next column!

Re: xbrowse listbox

Posted: Mon Apr 22, 2019 4:21 pm
by ukoenig
Günther,

that belongs to my test.
the next column can be in edit-mode or just getting the focus
I'm still working on the called function MyCellDlg( ..
that will calculate the needed overall-size in relation to the defined items.

WITH OBJECT :aCols[ 3 ]
:nEditType := EDIT_BUTTON
:bEditBlock := { | nRow, nCol, oCol, nKey | Retvalue := MyCellDlg( oBrw, nRow, nCol, oCol, nKey ), ;
IIF( Retvalue <> NIL, ( oCust:City := Retvalue, oBrw:RefreshCurrent(), oBrw:GoRight() ), NIL ) }
END

next column
:aCols[ 4 ]:nEditType = EDIT_GET

regards
Uwe :?: