Actual Row and Column of xBrowse Cell

Actual Row and Column of xBrowse Cell

Postby Rick Lipkin » Mon Oct 15, 2012 3: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: Select all  Expand view

nColumn := oLbxA:nAt  // column 2
 


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

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Actual Row and Column of xBrowse Cell

Postby ukoenig » Mon Oct 15, 2012 3: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 :lol:
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: Actual Row and Column of xBrowse Cell

Postby Rick Lipkin » Mon Oct 15, 2012 3:29 pm

Uwe

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

Rick
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Actual Row and Column of xBrowse Cell

Postby ukoenig » Tue Oct 16, 2012 9: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 :lol:
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: Actual Row and Column of xBrowse Cell

Postby Rick Lipkin » 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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Actual Row and Column of xBrowse Cell

Postby ukoenig » Tue Oct 16, 2012 1: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Actual Row and Column of xBrowse Cell

Postby Rick Lipkin » Tue Oct 16, 2012 1:46 pm

Uwe

Thanks for verifying what I saw as well ..

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests