![]() |
CodeJock Configuration problem. |
Post Reply ![]() |
Author | |
Sstar9 ![]() Newbie ![]() Joined: 25 August 2006 Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() Posted: 30 August 2006 at 10:18pm |
I just purchased CodeJock
Xtreme CommandBarPro 10.30.
Xtreme Controls 10.30
I want to use them in my program. I added a
CXTPControlPopupColor
button to my toolbar that has a child PopUp Color selector. Hence in my OnCreateControl(*)
I put the codes below which are similar to the TearOff Popup bar example. I have no problem to build and run the program. But I found, when the TearOff Color Popup bar shows, The captions "Automatic" and "More Color" do not show. I select either the constant XTP_IDS_AUTOMATIC or XTP_IDS_MORE_COLORS in my MFC 6.0 program, right click to see the definition of the constant. It leads me to my program's "Resource.h" page where the two constants are not defined there. But if I want to see the definition of XTP_IDS_AUTOMATIC or XTP_IDS_MORE_COLORS in the TearOff toolbar example, it leads me to "....\CommandBars\Resource.h" and the two constants are defined there.
So quite obviously "....\CommandBars\Resource.h" has not been included in my program. This should be program configuration problem. I have included both headers in my "stdafx.h"
#include <XTCommandBarsPro.h>
#include <XTControls.h> What else I should do? Any suggestions? I am using MFC as a static library.
......
if (lpCreateControl->nID == ID_INKCOLOR && pToolBar->GetBarID() == IDR_TOOLBAR_JW)
{ CXTPControlPopupColor* pPopupColor = new CXTPControlPopupColor(); pColorBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());
pPopupColor->SetCommandBar(pColorBar); CXTPControl * pXTPCtrl =
pColorBar->GetControls()->Add(new CXTPControlButtonColor(), XTP_IDS_AUTOMATIC); pColorBar->GetControls()->Add(new CXTPControlColorSelector(), ID_SELECTOR_TEXT); pXTPCtrl =
pColorBar->GetControls()->Add(new CXTPControlButtonColor(), XTP_IDS_MORE_COLORS); pColorBar->SetTearOffPopup(_T("Ink Color"), 1005, 0); pColorBar->EnableCustomization(FALSE); pColorBar->InternalRelease();
lpCreateControl->pControl = pPopupColor; return TRUE; } ......
|
|
Sharing makes life better
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Check, maybe in your resource.h you added this constants?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Sstar9 ![]() Newbie ![]() Joined: 25 August 2006 Status: Offline Points: 25 |
![]() ![]() ![]() ![]() ![]() |
Adding the constants in my "Resource.h" does not work. But anyway, I found out the reason for this. The reason is I set "Using MFC as Static Library". This could be reproduced with codejock's own sample applications. If I am not wrong, it seems applications which Use MFC as Static Library are not well-supported with CodeJock Library. |
|
Sharing makes life better
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Supported.
But If you use MFC as static library, codejock linked as static too and you have manually to add resources to rc2 file.
in your res\[app].rc2 add
#include <XTToolkitPro.rc>
and all will work.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |