Print Page | Close Window

Tooltips problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7739
Printed Date: 16 May 2024 at 9:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltips problem
Posted By: terrym
Subject: Tooltips problem
Date Posted: 06 August 2007 at 4:37am
I have tooltips with the style of

xtpToolTipOffice2007

and we also ShowImage( TRUE, 0 );
 
however for some reason it always shows our 32x32 images and not 16x16
 
is there a way to force icons to 16x16.
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 07 August 2007 at 12:29am

Hello,

No, there is no way. tooltips always uses largest version.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 07 August 2007 at 4:13am
Do you think you may add a feature in the future which allows this to be set, as 16x16 icons in our opinion look better on left of caption title.


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 07 August 2007 at 4:34am
Hi,
 
You can fix now line in Source\Common\XTPToolTipContext.cpp
from
pIcon =  tc.pImageManager ? tc.pImageManager->GetImage(UINT(m_nImageBase + nHit), ICON_BIG) : 0;
to
 
pIcon =  tc.pImageManager ? tc.pImageManager->GetImage(UINT(m_nImageBase + nHit), ICON_SMALL) : 0;
think we will add something for future.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 08 August 2007 at 6:33am
All changed, thanks, do you think you could add a function to next release 11.2 as this would save us hard coding each time ;)
 
Keep up great work and if any betas of 11.2 are available please let us know so we can test with our app :)
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 08 August 2007 at 8:59am
Yes, added for 11.2 release.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 08 August 2007 at 9:51am
changed, recompiled and rebuilt my app and still shows like:

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 09 August 2007 at 1:42am
Hello,
 
It can be only if you don't have small icon for this id.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 10 August 2007 at 4:20am
ah yes, you are correct, however if we specify ICON_SMALL (as we want small) can it not resize icons if too large ?

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 10 August 2007 at 8:53am

Hello,

No, you must add icon you want to draw.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: terrym
Date Posted: 10 August 2007 at 3:21pm
ok, cool we will add small icons aswell

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net