FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Actual Row and Column of xBrowse Cell
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Actual Row and Column of xBrowse Cell
Posted: Mon Oct 15, 2012 03:12 PM
To All

I want to be able to determine the actual row and column of a cell in xBrowse. I have found that this expression gives me the actual Column number :

Code (fw): Select all Collapse
nColumn := oLbxA:nAt  // column 2


But I do not know how to find the actual row ?

Thanks
Rick Lipkin
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Mon Oct 15, 2012 03:19 PM
Hello Rick,

I get the needed Row / Col positions like :

oBrw:bLClicked := { | nRow, nCol | ( nRPos := oBrw:KeyNo() , ;
nCPos := oBrw1:SelectedCol():nCreationOrder ) }

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.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Mon Oct 15, 2012 03:29 PM

Uwe

Thank you for your quick answer .. just what I was looking for.

Rick

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Tue Oct 16, 2012 09:45 AM
Rick,

that was the reason, I created the MEMORY-game, to test some xbrowse-functions

A Array related to DBF-records, where I save selected Image-names ( cell-click )

// Cols
01-02-03-04-05-06 // Rows
07-08-09-10-11-12
13-14-15-16-17-18
19-20-21-22-23-24
25-26-27-28-29-30

A click on field 22 ( Row 4 / Col 4 )

calculates the DBF-record-position ( of 30 Records )

oBrw:bLClicked := { | nRow, nCol | ( nRPos := oBrw:KeyNo(), ;
nCPos := oBrw:SelectedCol():nCreationOrder, ;
nRecPos := ( ( nRPos - 1 ) * 6 ) + nCPos ) }

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.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Tue Oct 16, 2012 12:38 PM

Uwe

I was doing some testing with oLbx:bLClicked and oLbx:bLDblClick against the same xBrowse. It appears that you can not have a single click and a double click together. The single click always is selected whether you do a single or double click.

Any ideas on how to incorporate both into the same browse ?

Thanks
Rick Lipkin

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Tue Oct 16, 2012 01:37 PM

Rick,

tested. It seems only ONE of the options is possible Left- or LeftDbl-click

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.
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Actual Row and Column of xBrowse Cell
Posted: Tue Oct 16, 2012 01:46 PM

Uwe

Thanks for verifying what I saw as well ..

Rick Lipkin

Continue the discussion