FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tooltip of the selector column
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Tooltip of the selector column
Posted: Wed May 10, 2017 08:14 AM

Hi, all !

Is it possible to show tooltip when you hover the mouse over the header selector column ?

Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Tooltip of the selector column
Posted: Wed May 10, 2017 02:59 PM

Hi, no se si te refieres a esto...saludos... :shock:

oBrw:aCols[n]:cToolTip := "Pulse Boton para Detalles"

Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Tooltip of the selector column
Posted: Wed May 10, 2017 08:55 PM

I asked about the record selector column

Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Tooltip of the selector column
Posted: Wed May 10, 2017 11:45 PM
Natter wrote:I asked about the record selector column


Sorry, law fast and I do not notice it was especially in that column, there I have no idea, ahber if Mr. NAO or someone else has an answer, thank you... :-)

Google translator
Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: Tooltip of the selector column
Posted: Thu May 11, 2017 07:37 AM
see the link below for a 'help' button to click (the cursor changes shape), then a click on a browse column open the contestual help.

http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33685&p=198919&hilit=marzio#p199584
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Tooltip of the selector column
Posted: Thu May 11, 2017 09:42 AM

I do not understand and here a click on the button Iin ribbonbar and and tooltip on the row selector column in xbrowse ?

Posts: 346
Joined: Mon Oct 05, 2009 03:35 PM
Re: Tooltip of the selector column
Posted: Thu May 11, 2017 11:52 AM

Sacado desde el foro en Español.

function TestTip()

   local oDlg, oFont, oBrw

   USE CUSTOMER

   DEFINE DIALOG oDlg SIZE 600,500 PIXEL
   @ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
      DATASOURCE "CUSTOMER" AUTOCOLS ;
      CELL LINES NOBORDER

   oBrw:bToolTips   := ;
         { | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }

   oBrw:CreateFromCode()

   ACTIVATE DIALOG oDlg CENTERED

return nil

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

   local uBm, uVal

   if nMouseRow != oBrw:nRowSel
      uBm   := oBrw:BookMark
      Eval( oBrw:bSkip, nMouseRow - oBrw:nRowSel )  
      uVal  := oMouseCol:Value
      oBrw:BookMark := uBm
   else
      uVal  := oMouseCol:Value
   endif

return cValToChar( uVal )
SkyPe: armando.lagunas@hotmail.com

Mail: armando.lagunas@gmail.com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Tooltip of the selector column
Posted: Thu May 11, 2017 01:22 PM

Very good Armando. Many thanks.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Tooltip of the selector column
Posted: Thu May 11, 2017 03:06 PM

Mr Natter

This is not possible now.
Now that you raised the issue, we shall keep it in our TODO list.

Mr Armando and Mr Karinha

Now oCol:bToolTip is superceded by oCol:bCellToolTip. We recommend using this and stop using bToolTip.

When we use bCellToolTip, we do not need to create another function.

Simply, oCol:bCellToolTip := { || oCol:Value }

Regards



G. N. Rao.

Hyderabad, India
Posts: 193
Joined: Wed Apr 04, 2007 06:54 AM
Re: Tooltip of the selector column
Posted: Fri May 12, 2017 07:37 AM
I do not understand and here a click on the button Iin ribbonbar and and tooltip on the row selector column in xbrowse ?

this function is an alternative to the use of 'tooltips', it requires 2 click:
the first one on the help button on ribbonbar (the cursor changes shape),
the second click on the column where is required help, a windows with help is opened.
Posts: 130
Joined: Sun Mar 08, 2009 04:33 PM
Re: Tooltip of the selector column
Posted: Sun Apr 07, 2024 11:37 AM

I tried to test the code:

#include "FiveWin.ch"

function Test()

   USE CUSTOMER

   DEFINE DIALOG oDlg SIZE 600,500 PIXEL
   @ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
      DATASOURCE "CUSTOMER" AUTOCOLS ;
      CELL LINES NOBORDER

   oBrw:bToolTips   := ;
         { | oBrw,r,c,f,oMouseCol,nMouseRow| MojColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }

   oBrw:CreateFromCode()

   ACTIVATE DIALOG oDlg CENTERED

return nil

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

   local uBm, uVal

   if nMouseRow != oBrw:nRowSel
      uBm   := oBrw:BookMark
      Eval( oBrw:bSkip, nMouseRow - oBrw:nRowSel )  
      uVal  := oMouseCol:Value
      oBrw:BookMark := uBm
   else
      uVal  := oMouseCol:Value
   endif

return cValToChar( uVal )
 
return nil

Error:

Error BASE/1082 Argument error: -
Parameter :
[ 1] = U
[ 2] = N 1

Stack-List

called by MOJCOLTOOLTIP(31)
called by (b)TEST(16)
called by TXBROWSE:MOUSEMOVE(3554)
called by TWINDOW:HANDLEEVENT(0)
called by TCONTROL:HANDLEEVENT(1724)
called by TXBROWSE:HANDLEEVENT(11734)
called by _FWH(3177)
called by DIALOGBOXINDIRECT(0)
called by TDIALOG:ACTIVATE(270)
called by TEST(20)
called by (b)BUILDMENU(2095)
called by TMENU:COMMAND(461)
called by TWINDOW:COMMAND(1037)
called by TMDIFRAME:COMMAND(247)
called by TMDIFRAME:HANDLEEVENT(0)
called by _FWH(3177)
called by WINRUN(0)
called by TMDIFRAME:ACTIVATE(990)
called by MAIN(450)
CPU type: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz 0 Mhz
Hardware memory: 16326 MB ( available: 10102 MB )

I would say nMouseRow = 0?

Best regards

Milos



[ FWH 21.11 ] [ xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603) ]
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Tooltip of the selector column
Posted: Tue Apr 09, 2024 05:29 AM
Instead of
Code (fw): Select all Collapse
 oBrw:bToolTips   := ;
         { | oBrw,r,c,f,oMouseCol,nMouseRow| MojColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }
can you please try
Code (fw): Select all Collapse
oBrw:bCellToolTips := { |o| o:Value }
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion