FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Controlar propiedad AutoPopDelay de un tooltip
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM

Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 04:34 PM
Amigos.
¿Se puede controlar el tiempo que necesitemos mientras se muestra un ToolTip?
¿Como hacerlo?

AutoPopDelay: Controla la cantidad de tiempo que se mostrara el tooltip


Saludos
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 06:54 PM

SI. Modificando window.prg

Mira en window.prg, donde está escrito Rossine. Se tu fwhx for la vérsion FWH16.10 puede usar esta window,prg modificada.

Mira tooltip.prg que és como yo uso.

http://www.4shared.com/zip/Y-xm-jMOba/TOOLTIP.html

Saludos

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 07:03 PM
Después de cambiar window.prg hacer asi:

Mister Navarro podria incorporar al nuevo build de FWHX.

Code (fw): Select all Collapse
    REDEFINE GET aGet[1]    VAR XCODVEND PICTURE "@K 99" ID 20 OF ODLG       ;
             BITMAP   "BUSCAR"  FONT oFnt        UPDATE                      ;
             COLOR nRGB( 000, 000, 000 ), nRGB( 243, 250, 200 )              ;
             VALID ( CLICK(), ACHA_CODIGO_VENDEDOR( XCODVEND, aGet ) )       ;
             ACTION( CLICK(), ACHA_CODIGO_VENDEDOR( XCODVEND := [**], aGet ) )

    //aGet[1]:Disable()
    aGet[1]:lBtnTransparent := .T.       // transparent button get aGet[1]
    aGet[1]:lAdjustBtn      := .T.       // Button Get Adjust Witdh aGet[1]
    aGet[1]:lDisColors      := .F.       // Deactive disable color
    aGet[1]:nClrTextDis     := CLR_WHITE // Color text disable status
    aGet[1]:nClrPaneDis     := CLR_BLUE  // Color Pane disable status

    aGet[1]:bKeyDown := { |nKey| IF( nKey == VK_F7, Eval( aGet[1]:bAction ), Nil ) }

    //-> By Rossine
    aGet[1]:cToolTip         := OemToAnsi( "Click no BotÆo ao Lado, Para " + ;
                                           "Visualizar o Banco de Dados "  + ;
                                           "dos Operadores, Veja os C¢digos "+;
                                           "<F7>-Mostra." )
    aGet[1]:lToolTipBallon   := .T.
    aGet[1]:nTooltipWidth    := 120  // 100
    aGet[1]:nTooltipTexColor := nRGB( 000, 000, 000 )
    aGet[1]:nTooltipBKColor  := nRGB( 250, 250, 250 )
    aGet[1]:cTooltipTitle    := OemToAnsi( "Operadores do Sistema" )
    aGet[1]:nTooltipIcon     := 1  && 0=NONE / 1=TTI_INFO / 2=TTI_WARNING / 3=TTI_ERROR
    //-> 0=TTDT_AUTOMATIC / 1=TTDT_RESHOW / 2=TTDT_AUTOPOP / 3=TTDT_INITIAL
    aGet[1]:nSetDelayType    := 2
    aGet[1]:nSetDelayTime    := 350000 //-> Velocidade do TOOLTIP-> +- 50 Secs


Dudas, pregunte. Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 07:07 PM

Lo acabo de descargar y lo miraré
Saludos

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: Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 07:20 PM
imagen del tooltip con la classe modificada:



Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Thu Dec 15, 2016 09:42 PM

Gracias, Karinha. Lo probaré.
Saludos.

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Fri Dec 16, 2016 04:08 AM
For many years it is already possible to set title, icon and colors of tooltip.

Obj:cToolTip can be assigned with Text or Array or CodeBlock. Codeblock can return either text or array
Advantage of codeblock is that we can change the text,etc displayed according to the context at the time of display of tooltip.

Array Specs:
Obj:cToolTip := { cText, cTitle, nIcon, nClrText, nClrBack }


March 2008
===========
* Enhancement: Tooltips can now have user defined header, icon and colors,
by specifying the tooltip as an array in the format
{ cToolTipText, [cHeader, [nIcon]], [nForeColor], [nBackColor] }.
If the tooltip is specified as a codeblock, it can evaluate to a
character value or an array.


Now we shall consider adding width, delaytype and delaytime
Regards



G. N. Rao.

Hyderabad, India
Posts: 8523
Joined: Tue Dec 20, 2005 07:36 PM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Fri Dec 16, 2016 12:31 PM

Very well, Mr. Rao. Waiting anxiously. Greetings.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 226
Joined: Sun May 13, 2012 07:52 AM

Re: Controlar propiedad AutoPopDelay de un tooltip

Posted: Sat Dec 17, 2016 12:10 PM

Idea
option for:
AutoPopDelay infinite,,,, end with click
Obj:cToolTip := { cText, cTitle, nIcon, nClrText, nClrBack, lInfinite }

:roll:

FWH2008 | xHarbour | BCC74 | SQLRDD

Continue the discussion