TOOLTIPCOLOR and TOOLTIPFONT problem

This forum is for eXpress++ general support.
Message
Author
User avatar
slobodan1949
Posts: 80
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

TOOLTIPCOLOR and TOOLTIPFONT problem

#1 Post by slobodan1949 »

TOOLTIPCOLOR and TOOLTIPFONT problem

I have been having a problem with TOOLTIPCOLOR and TOOLTIPFONT for a long time
When I don't use these two commands the tooltip works fine.
When I use these two commands:
DCGETOPTIONS ;
TOOLTIPCOLOR GRA_CLR_BLACK,GRA_CLR_YELLOW TOOLTIPFONT "10.Consolas"
or just one of them
DCGETOPTIONS ;
TOOLTIPCOLOR GRA_CLR_BLACK, GRA_CLR_YELLOW
or
DCGETOPTIONS ;
TOOLTIPFONT "10.Consolas"
tooltip is duplicated or tripled and it looks confusing and ugly
as in the attached picture.

Does anyone know a solution to this problem, if there is a solution,
because it is necessary and important for me to use the tooltip
with a different font and a different background color.

// Alaska Xbase++ version 2.0.1503 //
// eXpress++ version 2.0.268 //
// Windows 10 64 byt.
Attachments
TOOLTIPCOLOR.jpg
TOOLTIPCOLOR.jpg (67.39 KiB) Viewed 2119 times

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#2 Post by rdonnay »

I will look into this.

I recall someone showing me this years ago but he could not give me a sample program.

Here is my test program. It does not reproduce your problem.
Can you give me a complete program that I can compile and run?

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], GetOptions, dDate := Date()

@ 0,0 DCGET dDate TOOLTIP 'Enter a Date'

DCGETOPTIONS ;
TOOLTIPCOLOR GRA_CLR_BLACK,GRA_CLR_YELLOW TOOLTIPFONT "16.Consolas"

DCREAD GUI FIT TITLE 'Tooltip problem' OPTIONS GetOptions

RETURN nil
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#3 Post by rdonnay »

Try this latest version of DCLIPX.DLL:

dclipx.dll
The eXpress train is coming - and it has more cars.

User avatar
slobodan1949
Posts: 80
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#4 Post by slobodan1949 »

Hi Roger,
Thanks for your reply.
I am sending additional information in a docx file.
Attachments
TOOLTIPCOLOR-TOOLTIPFONT.zip
(605.8 KiB) Downloaded 160 times

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#5 Post by rdonnay »

Did you try the dclipx.dll link?

Bobby Drakos reminded me that I fixed this problem for him about 1 year ago.
The eXpress train is coming - and it has more cars.

User avatar
slobodan1949
Posts: 80
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#6 Post by slobodan1949 »

Hi Roger
That's the first thing I did. I tried my application with DCLIPX.DLL which I downloaded from the forum (where you posted it). Nothing has changed. The problem is not solved.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#7 Post by rdonnay »

Are you unable to give me a sample program that demonstrates the problem?

You claim that you have a large program with multiple windows and threads, but I have many customers with such applications and I am not hearing reports of this problem.
The eXpress train is coming - and it has more cars.

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#8 Post by skiman »

Hi,

I'm using the tooltips troughout my application and I never saw this problem.
I also have a different color and font.

I have this at the start of my application:

Code: Select all

	DCGETOPTIONS ;
	   ...
	   TOOLTIPCOLOR ABO_DARKGRAY, ABO_IVORY ;
	   TOOLTIPFONT '9.Arial' ;
           ...

   	DC_GetOptDefault(GetOptions)
Best regards,

Chris.
www.aboservice.be

User avatar
slobodan1949
Posts: 80
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#9 Post by slobodan1949 »

Hi Roger,
at your request I am sending the program with tooltipcolor
Attachments
[KASA2024-RogerDonnay].zip
(2.11 MiB) Downloaded 152 times

User avatar
slobodan1949
Posts: 80
Joined: Mon Apr 25, 2011 8:57 am
Location: SERBIA
Contact:

Re: TOOLTIPCOLOR and TOOLTIPFONT problem

#10 Post by slobodan1949 »

Note:
Commands are set only in the module:

1_KASA_stolovi_screen.prg

DCGETOPTIONS NOESCAPEKEY ICON 1;
WINDOWWIDTH 985 WINDOWHEIGHT 860 ;
AUTORESIZE ;
HIDE TOOLTIPCOLOR GRA_CLR_BLACK,GRA_CLR_YELLOW TOOLTIPFONT "10.Consolas"

Post Reply