Print Page | Close Window

XTConrol::SetIconId

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=9954
Printed Date: 28 September 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTConrol::SetIconId
Posted By: adrien
Subject: XTConrol::SetIconId
Date Posted: 24 March 2008 at 9:13pm
 
what is my chance of getting API for SetIconId changed as per below?
 
It's no good to me to be forced that all icon changes are animated.
 
 
 
void SetIconId(int nId, BOOL bAnimate = TRUE);
 
AFX_INLINE void CXTPControl::SetIconId(int nId, BOOL bAnimate) {
 if (m_nIconId != nId) {m_nIconId = nId; RedrawParent(bAnimate);}
}


-------------
http://www.wingate.com - http://www.wingate.com



Replies:
Posted By: Oleg
Date Posted: 25 March 2008 at 1:55am
Hello,
 as I wrote just call pControl->RedrawParent(FALSE); to disable animation after icon changed.


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


Posted By: adrien
Date Posted: 25 March 2008 at 9:24am
OK
 
I'm doing this every 50ms though, so it's crazy to kick off an asynch animated update then immediately cancel it with another call - make the system do work for no reason.
 
I have to call that after each time I set the icon id.
 
I don't think that's the best way to do it, so I guess I will have to stick to patching the library.  It only takes 30s.


-------------
http://www.wingate.com - http://www.wingate.com


Posted By: Oleg
Date Posted: 25 March 2008 at 10:19am
Hi,
 
ok, think nobody even need animation for SetIconId. we changed to
 
AFX_INLINE void CXTPControl::SetIconId(int nId) {
 if (m_nIconId != nId) {m_nIconId = nId; RedrawParent(FALSE);}
}


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


Posted By: adrien
Date Posted: 25 March 2008 at 10:44am
That's why I suggested the default parameter, so it would behave the same way if noone changes their code, but if someone doesn't want animation, they can add the extra parameter.

-------------
http://www.wingate.com - http://www.wingate.com



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