xbrowse listbox

xbrowse listbox

Postby byte-one » Mon Apr 22, 2019 8: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?
Last edited by byte-one on Mon Apr 22, 2019 4:03 pm, edited 1 time in total.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: xbrowse listbox

Postby ukoenig » Mon Apr 22, 2019 3: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 )

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
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 listbox

Postby byte-one » Mon Apr 22, 2019 4: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: xbrowse listbox

Postby ukoenig » Mon Apr 22, 2019 4: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xbrowse listbox

Postby byte-one » Mon Apr 22, 2019 4:08 pm

Uwe, next column!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: xbrowse listbox

Postby ukoenig » Mon Apr 22, 2019 4: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 103 guests