Print Page | Close Window

No command bar when calling Add

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15353
Printed Date: 29 April 2024 at 9:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: No command bar when calling Add
Posted By: rdhd
Subject: No command bar when calling Add
Date Posted: 13 October 2009 at 9:18am
I have subclassed the CXTPControlPopup so I can persist some extra data when the QAT saves such a control. After allocating my popup, I call CXTPGroup::Add( pPopup, ...) - the overload where one passes the control in instead of the control type.
 
But I found that unlike calling Add( xtpControlPopup, ...), the CJ code does not allocate and set the command bar pointer for the popup.
 
Why not?
 
I am having to copy code from the CJ source to do this myself. Dangerous since if CJ ever changes, I have to react. Seems like a simple call to get the runtime class and populate the instance data when calling Add( pControl, ...).
 
Please add such code to a future release. In the meantime I'll add a check for the bar and only allocate if it is NULL.



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