FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help for xbrowse tooltip
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: help for xbrowse tooltip
Posted: Wed Feb 25, 2015 07:25 PM
Mr. Nages : (using DBFs)

It works, but partially .

Only works well on the same line .

If we go down or go up to any line in the same column , does not work.

To work must select a different column and then stand on the desired cell.

Thanks.


Code (fw): Select all Collapse
   oCol = oBrw:AddCol() 
   oCol:bEditValue = { || (cAlias)->NOMBRE } 
   oCol:cHeader = "DESCRIPCION DE LA CUENTA" 
   oCol:nEditType = 0   //no editable
   oCol:bToolTip := { | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }


//----------------------------------------------------------
Function MyColToolTip( oBrw, r, c, f, oMouseCol, nMouseRow )

   local uBm, uVal

   // for older versions
   nMouseRow   := oBrw:MouseRowPos( r )
   oMouseCol   := oBrw:MouseColPos( c )
   oMouseCol   := oBrw:ColAtPos( oMouseCol )
   //

   if nMouseRow != oBrw:nRowSel
      uBm   := oBrw:BookMark
      Eval( oBrw:bSkip, nMouseRow - oBrw:nRowSel )   //here  (variable nMouseRow do not exists)
      uVal  := oMouseCol:Value
      oBrw:BookMark := uBm
   else
      uVal  := oMouseCol:Value
   endif

return cValToChar( uVal )
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: help for xbrowse tooltip
Posted: Thu Feb 26, 2015 01:52 PM
Mr Nages,
thanks thanks very thanks


Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion