Tooltip color

Tooltip color

Postby Silvio.Falconi » Mon Mar 30, 2020 1:59 pm

when I create a tooltip type array I make
obtn:cToolTip := {|obtn| FwTooltip(obtn) }



on FwTooltip(obtn) I have

local cText := Crea_Tooltip(oBtn)
local cTitle := cMyTitle+IIF(nstatus=3, " Prenotazione", IIF(nstatus=2," Occupato"," Libero"))
local cIcon := IcoTooltip(cCliente,nstatus)
local nClrFore := CLR_HRED
local nClrBack := CLR_YELLOW

return {cText, cTitle , cIcon , nClrFore, nClrBack }




then on Tootip created it not espect the colors I inserted as you can see here


Image


where is the yellow ?
where is the Hred ?

I think the error is here

DEFINE WINDOW oToolTip FROM 0, 0 TO 1, 5 ;
STYLE nOr( WS_POPUP, WS_BORDER ) ;
COLOR 0, RGB( 255, 255, 225 ) OF Self

then can I change the color of title or text ?

where is the function CreateToolTipWNew

I allready tried to make also
SendMessage(::hwnd, TTM_SETTIPBKCOLOR, CLR_HRED, 0)
to make a test but not run ok


then
If it is ::lballoon the text is blue
if ::lbaloon = .f. the text color is black
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: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: Tooltip color

Postby nageswaragunupudi » Tue Mar 31, 2020 8:12 am

TOOLTIP { cText, [cHeader], [nIcon], [nClrText], [nClrBack], [nWidth], [nDelayTime], [nDelayType] }

Colors work only when the application is not linked with Manifest. If linked with Manifest, colors do not work.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Tooltip color

Postby Horizon » Tue Mar 31, 2020 10:01 am

nageswaragunupudi wrote:TOOLTIP { cText, [cHeader], [nIcon], [nClrText], [nClrBack], [nWidth], [nDelayTime], [nDelayType] }

Colors work only when the application is not linked with Manifest. If linked with Manifest, colors do not work.


Thank you Mr. Rao,

I have not seen this information before.

What is nDelayType?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1295
Joined: Fri May 23, 2008 1:33 pm

Re: Tooltip color

Postby nageswaragunupudi » Tue Mar 31, 2020 10:47 am

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 30 guests