SET TOOLTIPBACKCOLOR

Moderator: Rathinagiri

Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México
Has thanked: 1 time
Been thanked: 2 times

Re: SET TOOLTIPBACKCOLOR

Post by Javier Tovar »

hummmm :? :? :?

No sé lo que esta fallando, pero solo me funciona en Window Basic. en Win7, 32bits, HMG-Unicode

Espero que mañana mi máquina quiera trabajar y no me haga pensar cosas!

Saludos

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César »

srvet_claudio wrote:Works fine for me in Aero and non Aero styles (Win 7).
+1
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César »

Dear Claudio,

This is for delay time display of ToolTips:

Code: Select all

#define TTM_SETDELAYTIME      ( WM_USER + 3 )
#define TTDT_AUTOMATIC        0
#define TTDT_RESHOW           1
#define TTDT_AUTOPOP          2
#define TTDT_INITIAL          3

nMilSecs := 5000
SendMessage( GetFormToolTipHandle ("Form_1"), TTM_SETDELAYTIME, TTDT_RESHOW, nMilSecs )
I tested with TTDT_RESHOW+TTDT_AUTOPOP and the ToolTip is been displayed and when finishing is with vanishing effect (disapearing slowly). :D

Probably you would like to include in HMG.

I also trying to have a differentiated ToolTip by Control, but without success... :(

I'm using:

Code: Select all

SetToolTipCustomDrawControl (cControlName, cFormName, aBackColor, aForeColor, aFont, lBalloon, cTitle, xIconName )
and

Code: Select all

aFont := ARRAY FONT "Times New Roman" SIZE 10 BOLD ITALIC
SET TOOLTIPCUSTOMDRAW CONTROL Label_2 OF Form_1  ARRAYFONT aFont  BALLOON .F.  TITLE "Title Label"  ICON TOOLTIPICON_INFO_LARGE
But not working, assume only a generic for all. And sometimes one control assume same ICON from other which should not display any.

The strange in your demo is working... Would it be by the reason of I'm using _SetToolTip function to force attribution text ? And this old function is being a generic not CustomDrawed ?

Click here to download in case you need to see source code.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply