FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse listbox
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
xbrowse listbox
Posted: Mon Apr 22, 2019 08:17 AM

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?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xbrowse listbox
Posted: Mon Apr 22, 2019 03:23 PM
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 )



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 :-)
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.
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: xbrowse listbox
Posted: Mon Apr 22, 2019 04:02 PM
Uwe,
2. selected with dblclick or return. exit with esc or button

only with type a or b..... WITHOUT to press return or dblclick.
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xbrowse listbox
Posted: Mon Apr 22, 2019 04:07 PM

Günther,

to the next column or next row

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.
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: xbrowse listbox
Posted: Mon Apr 22, 2019 04:08 PM

Uwe, next column!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xbrowse listbox
Posted: Mon Apr 22, 2019 04:21 PM
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 :-)
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.

Continue the discussion