Tooltip for tabs folderex

Tooltip for tabs folderex

Postby Natter » Tue Jan 17, 2017 10:12 am

Hi? all !

How to set tooltip for tabs folderex ?
Natter
 
Posts: 1204
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip for tabs folderex

Postby Silvio.Falconi » Tue Jan 17, 2017 4: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7034
Joined: Thu Oct 18, 2012 7:17 pm

Re: Tooltip for tabs folderex

Postby cnavarro » Tue Jan 17, 2017 7:39 pm

Code: Select all  Expand view

      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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Tooltip for tabs folderex

Postby Natter » Wed Jan 18, 2017 1:42 pm

Tnank for you help !
But I need to make your tooltip for each bookmark of folderex
Natter
 
Posts: 1204
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip for tabs folderex

Postby karinha » Wed Jan 18, 2017 2:39 pm

Debria funcionar, más no funciona. no hay referência a cTooltip en FOLDER.CH

Code: Select all  Expand view

   oFld:aDialogs[2]:cToolTip := "Esta es la Pestaña 2"
 


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

Re: Tooltip for tabs folderex

Postby cnavarro » Wed Jan 18, 2017 5:16 pm

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


Try with

Code: Select all  Expand view

       oFld1:cToolTip       := { || MyToolTip( oFld1:nOver ) }
 


Code: Select all  Expand view

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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Tooltip for tabs folderex

Postby karinha » Wed Jan 18, 2017 6:08 pm

Very good Master,

Code: Select all  Expand view

#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
User avatar
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Tooltip for tabs folderex

Postby Natter » Wed Jan 18, 2017 8:08 pm

Thank you, works perfectly !
Natter
 
Posts: 1204
Joined: Mon May 14, 2007 9:49 am

Re: Tooltip for tabs folderex

Postby ukoenig » Wed Jan 18, 2017 9: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

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Tooltip for tabs folderex

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 110 guests