FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tooltip for tabs folderex
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Tooltip for tabs folderex
Posted: Tue Jan 17, 2017 10:12 AM

Hi? all !

How to set tooltip for tabs folderex ?

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Tooltip for tabs folderex
Posted: Tue Jan 17, 2017 04:29 PM

try with
oApp():oFolder:bPopup := { | o | MenuTabs( oApp():oFolder ) }

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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip for tabs folderex
Posted: Tue Jan 17, 2017 07:39 PM
Code (fw): Select all Collapse
      oFld:cToolTip       := "Hola"    // or   oFld:cToolTip       := { ||  MyFunction() }
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 01:42 PM

Tnank for you help !
But I need to make your tooltip for each bookmark of folderex

Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 02:39 PM
Debria funcionar, más no funciona. no hay referência a cTooltip en FOLDER.CH

Code (fw): Select all Collapse
   oFld:aDialogs[2]:cToolTip := "Esta es la Pestaña 2"


Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 05:16 PM
Natter wrote:Tnank for you help !
But I need to make your tooltip for each bookmark of folderex


Try with

Code (fw): Select all Collapse
       oFld1:cToolTip       := { || MyToolTip( oFld1:nOver ) }


Code (fw): Select all Collapse
Function MyToolTip( nOpt )

   local cRet  := ""
   FWLOG nOpt
   Do Case
      Case nOpt = 1
         cRet := "Tab 1"
      Case nOpt = 2
         cRet := "Tab 2"
   
   EndCase
   
Return cRet
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 06:08 PM
Very good Master,

Code (fw): Select all Collapse
#include "fivewin.ch"

Function errorFolderex()

   local oDlg, oFld //, nOption := Array(5)

   DEFINE DIALOG oDlg TITLE "I am a DialogBox" ;
          STYLE nOr( WS_POPUP, WS_THICKFRAME ) FROM 0,0 TO 300, 400 PIXEL

   /*
   @ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5 UPDATE ;    
     PROMPT  "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"
   */

   @ 15, 20 FOLDEREX oFld SIZE 120, 100 OF oDlg PIXEL ROUND 5        ;
     PROMPT  "Option 1", "Option 2", "Option 3", "Option 2", "Option 2"

   //oFld:aDialogs[ 2 ]:cToolTip := "Tooltip en folder 1" // no funciona
   oFld:cToolTip := { || MyToolTip( oFld:nOver ) } // funciona

   @ 1, 1 BUTTON "&Botón que desaparecerá" SIZE 100, 20 OF oFld:aDialogs[1] PIXEL

   ACTIVATE DIALOG oDlg CENTERED ;
      ON CLICK oFld:aDialogs[ 1 ]:Refresh()

return nil

Function MyToolTip( nOpt )

   local cRet  := ""

   FWLOG nOpt

   Do Case
   Case nOpt = 1
      cRet := "Tab 1 Tooltip en folderex 1"
   Case nOpt = 2
      cRet := "Tab 2 Tooltip en folderex 2"
   Case nOpt = 3
      cRet := "Tab 3 Tooltip en folderex 3"
   Case nOpt = 4
      cRet := "Tab 4 Tooltip en folderex 4"
   Case nOpt = 5
      cRet := "Tab 5 Tooltip en folderex 5"
   EndCase
   
Return cRet


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 08:08 PM

Thank you, works perfectly !

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 09:59 PM
I included the solution to my test

it is not 100 % working !
moving from one tab to another ( left / right ) inside the tab-area, it is not working
the new focused tab still shows the tooltop of the old tab
In my sample moving from tab 3 to 4, the tooltip of tab 3 is still visible.

Leaving the tabarea and moving from the main page-area to the tabs it works



regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip for tabs folderex
Posted: Wed Jan 18, 2017 10:18 PM

Uwe, you are right
Tooltip is not destroyed when move mouse from one tab to other, this is why I do not show the new tooltip

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion