Page 1 of 1

Actual Row and Column of xBrowse Cell

PostPosted: Mon Oct 15, 2012 3:12 pm
by Rick Lipkin
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

Re: Actual Row and Column of xBrowse Cell

PostPosted: Mon Oct 15, 2012 3:19 pm
by ukoenig
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:

Re: Actual Row and Column of xBrowse Cell

PostPosted: Mon Oct 15, 2012 3:29 pm
by Rick Lipkin
Uwe

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

Rick

Re: Actual Row and Column of xBrowse Cell

PostPosted: Tue Oct 16, 2012 9:45 am
by ukoenig
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:

Re: Actual Row and Column of xBrowse Cell

PostPosted: Tue Oct 16, 2012 12:38 pm
by Rick Lipkin
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

Re: Actual Row and Column of xBrowse Cell

PostPosted: Tue Oct 16, 2012 1:37 pm
by ukoenig
Rick,

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

Best Regards
Uwe :|

Re: Actual Row and Column of xBrowse Cell

PostPosted: Tue Oct 16, 2012 1:46 pm
by Rick Lipkin
Uwe

Thanks for verifying what I saw as well ..

Rick Lipkin