SET TOOLTIPBACKCOLOR

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

SET TOOLTIPBACKCOLOR

Post by andyglezl »

Hola
Porque ya no funciona el "SET TOOLTIPBACKCOLOR" ?
--------------------------------------------------------------
Hello
Because it no longer works "SET TOOLTIPBACKCOLOR" ?
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: SET TOOLTIPBACKCOLOR

Post by esgici »

andyglezl wrote:Hola
Porque ya no funciona el "SET TOOLTIPBACKCOLOR" ?
--------------------------------------------------------------
Hello
Because it no longer works "SET TOOLTIPBACKCOLOR" ?
Confirmed, you are right :arrow:

Thanks to warn :)

I hope our developers will fix it soon :|

Viva HMG :D
Viva INTERNATIONAL HMG :D
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

SET TOOLTIPBACKCOLOR

Post by Pablo César »

Hi Andrés,

For me it is working perfectly but in Win7 classic mode (not themed).
Screen1.png
Screen1.png (8.01 KiB) Viewed 1859 times
This is the code I used:

Code: Select all

#include <hmg.ch>

Function Main()
SET TOOLTIPCUSTOMDRAW ON
SET TOOLTIPSTYLE BALLOON 
SET TOOLTIPBACKCOLOR { 255, 153, 153}

DEFINE WINDOW Form_1 AT 138 , 235 WIDTH 550 HEIGHT 350 ;
    TITLE "TOOLTIPBACKCOLOR test" MAIN

    DEFINE BUTTON Button_1
        ROW    130
        COL    220
        WIDTH  100
        HEIGHT 28
        ACTION Nil
        CAPTION "Button_1"
        FONTNAME "Arial"
        FONTSIZE 9
        TOOLTIP "This is a test"
    END BUTTON

END WINDOW
Form_1.Center
Form_1.Activate
Return Nil
According Claudio's message, in this post is confirming this.

I believe, this is not a bug. This themes remade OS colors which probably it would be more API characterists.

There are some others properties which are not workable for themed Windows. :|

Things that happen and done by Microsoft... :?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: SET TOOLTIPBACKCOLOR

Post by andyglezl »

Lastima...
En muchas ocaciones no podemos (mas bien, no debemos ) modificar el ambiente de trabajo de algún cliente
por algún detalle de nuestro programa a menos que sea muy necesario.
Gracias Pablo Cesar
---------------------------------------------------------------------------------------------------------------------------------
Pity ...
On many occasions we can not (or rather, should not) change the working environment of a client
for some detail of our program unless it is very necessary.
Thanks Pablo Cesar
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: SET TOOLTIPBACKCOLOR

Post by srvet_claudio »

andyglezl wrote:Hola
Porque ya no funciona el "SET TOOLTIPBACKCOLOR" ?
--------------------------------------------------------------
Hello
Because it no longer works "SET TOOLTIPBACKCOLOR" ?
With Windows Theme activated is not allowed many BackColor properties, because it uses background images instead of a color paint.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply