Tooltip of the selector column

Tooltip of the selector column

Postby Natter » Wed May 10, 2017 8:14 am

Hi, all !

Is it possible to show tooltip when you hover the mouse over the header selector column ?
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip of the selector column

Postby joseluisysturiz » Wed May 10, 2017 2: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!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Tooltip of the selector column

Postby Natter » Wed May 10, 2017 8:55 pm

I asked about the record selector column
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip of the selector column

Postby joseluisysturiz » 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... :shock:

Google translator
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Tooltip of the selector column

Postby marzio » Thu May 11, 2017 7: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
marzio
 
Posts: 129
Joined: Wed Apr 04, 2007 6:54 am

Re: Tooltip of the selector column

Postby Natter » Thu May 11, 2017 9: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 ?
Natter
 
Posts: 1222
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip of the selector column

Postby armando.lagunas » Thu May 11, 2017 11:52 am

Sacado desde el foro en Español.

Code: Select all  Expand view  RUN


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
User avatar
armando.lagunas
 
Posts: 346
Joined: Mon Oct 05, 2009 3:35 pm
Location: Curico-Chile

Re: Tooltip of the selector column

Postby karinha » Thu May 11, 2017 1:22 pm

Very good Armando. Many thanks.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Tooltip of the selector column

Postby nageswaragunupudi » Thu May 11, 2017 3: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Tooltip of the selector column

Postby marzio » Fri May 12, 2017 7: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.
marzio
 
Posts: 129
Joined: Wed Apr 04, 2007 6:54 am

Re: Tooltip of the selector column

Postby mtajkov » Sun Apr 07, 2024 11:37 am

I tried to test the code:

Code: Select all  Expand view  RUN
[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   [/code]


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) ]
mtajkov
 
Posts: 130
Joined: Sun Mar 08, 2009 4:33 pm

Re: Tooltip of the selector column

Postby nageswaragunupudi » Tue Apr 09, 2024 5:29 am

Instead of
Code: Select all  Expand view  RUN
oBrw:bToolTips   := ;
         { | oBrw,r,c,f,oMouseCol,nMouseRow| MojColToolTip( oBrw,r,c,f,oMouseCol,nMouseRow ) }


can you please try
Code: Select all  Expand view  RUN
oBrw:bCellToolTips := { |o| o:Value }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests