FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Tooltip para bot贸n de un get ( solucionado )
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Tooltip para bot贸n de un get ( solucionado )
Posted: Thu Oct 01, 2015 03:58 PM
Compa帽eros, quiero hacer eso y lo defino de la siguiente manera

Code (fw): Select all Collapse
oGet : oBtn : cTooltip := 'este es un mensaje'


y me da el siguiente error

Code (fw): Select all Collapse
聽 聽Error description: Error BASE/1005 聽No existe la variable de instancia: CTOOLTIP
聽 聽Args:
聽 聽 聽[ 聽 1] = U 聽 
聽 聽 聽[ 聽 2] = C 聽 este es un mensaje


Existe alg煤n m茅todo para poner un tooltip en dicho bot贸n ? Much铆simas gracias

Saludos
Posts: 139
Joined: Fri Nov 25, 2005 04:38 PM
Re: Tooltip para bot贸n de un get
Posted: Thu Oct 01, 2015 04:50 PM

oGet:cTooltip := {"Sua mensagem","Titulo"}

Ronaldo Minacapelli
Sistemas, Hospedagem e Cria莽茫o de WebSites
http://www.bazevani.com.br
Posts: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Fri Oct 02, 2015 03:28 PM

Ronaldo, gracias por contestar pero no es lo que necesito. Me gustar铆a que el tooltip apareciese cuando paso el rat贸n sobre el bot贸n y no sobre el get. Estuve mirando la clase y el bot贸n est谩 creado con la clase BtnBmp que si soporta tooltip, porque no cuando est谩 asociado a un get ? Alguna idea ? Muchas gracias

Saludos

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Fri Oct 02, 2015 03:44 PM

Horacio

Puedes probar este fichero para saber si es lo que necesitas?

https://www.dropbox.com/s/572qvxul85n21 ... p.exe?dl=0

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: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Fri Oct 02, 2015 05:32 PM

Cristobal, Eso es lo que necesito. Que deber铆a modificar en la clase ?. Muchas gracias.

Saludos

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 12:01 AM
Code (fw): Select all Collapse
METHOD MouseMove

.../...
// 聽 聽 聽 聽 聽 聽 聽 ::CheckToolTip( nRow, nCol ) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // Sustituir por
// Add this
聽 聽 聽 if ::oBtn != nil
聽 聽 聽 聽 聽if IsOverWnd( ::oBtn:hWnd, nRow, nCol )
聽 聽 聽 聽 聽 聽 if !Empty( ::oBtn:cToolTip )
聽 聽 聽 聽 聽 聽 聽 聽::oBtn:CheckToolTip( nRow, nCol )
聽 聽 聽 聽 聽 聽 else
聽 聽 聽 聽 聽 聽 聽 聽::CheckToolTip( nRow, nCol ) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // Modify
聽 聽 聽 聽 聽 聽 endif
聽 聽 聽 聽 聽else
聽 聽 聽 聽 聽 聽 ::CheckToolTip( nRow, nCol ) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // Modify
聽 聽 聽 聽 聽endif
聽 聽 聽 else
聽 聽 聽 聽 聽::CheckToolTip( nRow, nCol ) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // Modify
聽 聽 聽 endif

.../...


Como se aplica
Code (fw): Select all Collapse
.../...
聽 聽@ 10, 10 GET oGet VAR cVar ACTION ( MsgInfo( "Hola" ) )
聽 聽oGet:cTooltip := "TOOLTIP GET" 聽 //o tambien // { "FiveTech Soft Get ", "MyToolTip", 3,CLR_WHITE,CLR_HBLUE }
聽 聽oGet:oBtn:cTooltip := "TOOLTIP BOTON" 聽 // o tambien //{ "FiveTech Soft Boton ", "MyToolTip", 3,CLR_WHITE,CLR_HBLUE }
.../...
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: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 01:47 AM
Cristobal, muchas gracias por tu tiempo pero obtengo el mismo error

Code (fw): Select all Collapse
聽 聽Error description: Error BASE/1005 聽No existe la variable de instancia: CTOOLTIP
聽 聽Args:
聽 聽 聽[ 聽 1] = U 聽 
聽 聽 聽[ 聽 2] = C 聽 este es un mensaje


Alguna pista ? Gracias nuevamente

Saludos
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 06:46 AM

Puedes poner el codigo en el que creas el GET ?
Que version de Fwh estas usando?

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: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 12:20 PM
Cristobal, uso FWH 14.12 - Harbour 3.2.0dev (r1412151448) - BCC 5.82.

Este es el codigo

Code (fw): Select all Collapse
Redefine Get oGet[ 3 ] 聽Var oSelf : nDocumento 聽Id 105 Of oFdr : aDialogs[ 1 ] Picture "99999999" Font oFont Action( MsgRun( 'Consultando afip, espere por favor ...',, { || aDatos := ConsultarDni( oSelf : nDocumento ) } ), oSelf : MuestraLosDatos( aDatos, oGet, oSelf, oCbx[ 1 ] ) ) Bitmap 'internet2'
oGet[ 3 ] : oBtn : cTooltip := 'este es un mensaje'


Muchas gracias
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 05:11 PM

Que es 'internet2' ?, un recurso?

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: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 05:20 PM

Si, es un bitmap desde recursos.

Saludos

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 06:08 PM

Horacio
Si es un REDEFINE GET pon el oGet:oBtn:cTooltip := "Mi tooltip del boton" en el ON INIT del ACTIVATE DIALOG

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: 1364
Joined: Wed Jun 21, 2006 12:39 AM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 06:33 PM

Cristobal, funciono perfectamente. Gracias por tu tiempo.

Saludos

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Tooltip para bot贸n de un get
Posted: Sat Oct 03, 2015 07:01 PM

Horacio, por favor pon en el titulo del primer post del hilo "Solucionado" o algo parecido para que nos sea m谩s facil despues tener referencias a la hora de buscar temas
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: 195
Joined: Fri Jan 23, 2009 02:50 AM
Re: Tooltip para bot贸n de un get
Posted: Sun Oct 04, 2015 02:26 PM

Cristobal buen dia
Gracias por la informacion fue importante para mi,
Hay forma de cambiar la fuente_? quisa el tama帽o y el tipo

Gracias de antemano

Jairo