Print Page | Close Window

CXTPControlCustom and Clone()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14306
Printed Date: 28 February 2025 at 12:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlCustom and Clone()
Posted By: znakeeye
Subject: CXTPControlCustom and Clone()
Date Posted: 15 May 2009 at 7:52am
XTP 13.
 
I copy a whole group from tab #1 to tab #2. Then I click on tab #1 and tab#2 alternatively. Hence, I'm reusing a window here (which might be wrong in the first place). Sometimes, my CXTPControlCustom-button disappears - only showing the caption!
 
 
At first sight...
 
Then after changing tab a couple of times...
 
 
What's wrong? I sense CXTPControlCustom::Clone() is incomplete. Perhaps it should somehow ask the child control to copy itself to this?
CXTPCustomChildControl<CWnd>::Clone(CXTPCustomChildControl<CWnd> *pWnd)...? Dunno!


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 18 May 2009 at 1:26am
Hi,
 
Yes, Custom Controls have such restrictions.  There is no way for Custom control create 2 window handlers from 1. :(


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



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