Page 1 of 2
TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Sat Jan 13, 2024 10:53 am
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.
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Sat Jan 13, 2024 12:28 pm
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
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Sun Jan 14, 2024 7:38 am
by rdonnay
Try this latest version of DCLIPX.DLL:
dclipx.dll
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Sun Jan 14, 2024 12:11 pm
by slobodan1949
Hi Roger,
Thanks for your reply.
I am sending additional information in a docx file.
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Mon Jan 15, 2024 10:38 am
by rdonnay
Did you try the dclipx.dll link?
Bobby Drakos reminded me that I fixed this problem for him about 1 year ago.
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Mon Jan 15, 2024 1:46 pm
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.
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Wed Jan 17, 2024 2:34 pm
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.
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Thu Jan 18, 2024 1:00 am
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)
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Thu Jan 18, 2024 6:46 am
by slobodan1949
Hi Roger,
at your request I am sending the program with tooltipcolor
Re: TOOLTIPCOLOR and TOOLTIPFONT problem
Posted: Thu Jan 18, 2024 6:50 am
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"