FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cells on xBrowse
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Cells on xBrowse
Posted: Fri Dec 11, 2009 05:53 PM

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

Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Cells on xBrowse
Posted: Fri Dec 11, 2009 06:54 PM

Have you tried bLClicked?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Re: Cells on xBrowse
Posted: Fri Dec 11, 2009 11:05 PM

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

Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Cells on xBrowse
Posted: Fri Dec 11, 2009 11:35 PM

Try:

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

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Cells on xBrowse
Posted: Sat Dec 12, 2009 12:11 AM
Code (fw): Select all Collapse
oBrw:bLClicked:= {| nRow, nCol, nFlags| MyFunc( nCol ) }

and
Code (fw): Select all Collapse
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
Posts: 243
Joined: Wed Sep 19, 2007 04:32 PM
Re: Cells on xBrowse
Posted: Sat Dec 12, 2009 12:31 AM

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

Oscar A. Martinez
http://www.multisofthn.com
Honduras, Centro America
xHarbour Enterprise 1.2.2, Fivewin 13.06
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Cells on xBrowse
Posted: Sat Dec 12, 2009 08:13 PM
Try
Code (fw): Select all Collapse
nCol := oBrw:ColAtPos( oBrw:nColSel ):nCreationOrder


Regards,
Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Cells on xBrowse
Posted: Sun Dec 13, 2009 01:59 AM

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

Continue the discussion