No command bar when calling Add |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |