Cells on xBrowse

Post Reply
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Cells on xBrowse

Post by Blessed »

Dear friends of the forum

how to display a message or trigger an action to select a cell in XBROWSE with just one click, no double click or right click :?:
I have developed a pattern of weekly visits and each visit is, clearly be seen.
And I have sought ways to do this and I could not, no one has done something like that I made a thread.

FWH 9.06, xHarbour

regards
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Cells on xBrowse

Post by James Bott »

Have you tried bLClicked?

James
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Re: Cells on xBrowse

Post by Blessed »

James, Brief precise and concise!
To know which row guided me to the current record, but as I find out which column was clicked?
With a right click have the bRClickData in each column.


A Greeting from Honduras :D
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Cells on xBrowse

Post by James Bott »

Try:

oBrw:bLClicked:= {| nRow, nCol, nFlags| msgInfo( nCol ) }

Regards,
James
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Cells on xBrowse

Post by nageswaragunupudi »

Code: Select all

oBrw:bLClicked:= {| nRow, nCol, nFlags| MyFunc( nCol ) }
and

Code: Select all

function MyFunc( nColPix )

   local nCol, oCol

   nCol  := oBrw:MouseColPos( nColPix ) // nCol is the number of displayed column
   oCol  := oBrw:ColAtPos( nCol ) // Column object on which clicked


 
Regards

G. N. Rao.
Hyderabad, India
User avatar
Blessed
Posts: 243
Joined: Wed Sep 19, 2007 4:32 pm
Location: Honduras, C.A.
Contact:

Re: Cells on xBrowse

Post by Blessed »

Thanks friends

the nCol is the current position based on the current display columns.
There will have to make a calculation that pretended to jump, to find the field in the table to see.

Thanks for your time, it's bLClicked has been very helpful

A Greeting from Honduras :D
_ A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Cells on xBrowse

Post by Marc Vanzegbroeck »

Try

Code: Select all

nCol := oBrw:ColAtPos( oBrw:nColSel ):nCreationOrder
Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Cells on xBrowse

Post by nageswaragunupudi »

what we need to know is on which column of the browse the user clicked.

method MouseColPos( nColPixelClicked ) --> nCol clicked
oBrw:ColAtPos( oBrw:MouseColPos( nColPixelClicked ) ) --> oCol clicked
Regards

G. N. Rao.
Hyderabad, India
Post Reply