Print Page | Close Window

Toolbar customize button..

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=14025
Printed Date: 03 July 2024 at 4:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar customize button..
Posted By: BobWansink
Subject: Toolbar customize button..
Date Posted: 15 April 2009 at 5:22am
Hi all

I've got the following problem: Our dialogues can generate CXTPCommandBar's on their own. The dialogues add their own buttons, they don't use the LoadMenu function. Dialogues can have several toolbars. Each toolbar is added next to the other, and is located using "xtpBarTop". We use the following code (it's restructured a bit..):

    CXTPCommandBars * pBars = GetCommandBars();
      CXTPToolBar* pToolBarButtons = (CXTPToolBar*) pBars->Add(someID, xtpBarTop);
      CXTPControls * pControls=pToolBarButtons->GetControls();
      for (int q=0;q<pTB->getAantalItems();q++)
      {
          ZXTPControlButton * pControlButton=new ZXTPControlButton(tbID,butID,pTBListener); 
          pControls->Add(pControlButton);
      }
      pToolBarButtons->ShowExpandButton(FALSE);
      pToolBarButtons->SetShowGripper(FALSE);
      pToolBarButtons->SetCloseable(FALSE);
      pToolBarButtons->SetCustomizeDialogPresent(FALSE);
      pToolBarButtons->EnableCustomization(FALSE);

    pBars->EnableCustomization(FALSE);
    pBars->SetQuickCustomizeMode(FALSE);


This results in the following dialogue:



Circled in purple is what we think is the customize menu, even though each toolbar is added with :

      pToolBarButtons->ShowExpandButton(FALSE);
      pToolBarButtons->SetCustomizeDialogPresent(FALSE);
      pToolBarButtons->EnableCustomization(FALSE);

How do we remove this?

Thanks in advance,

Bob






-------------
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++



Replies:
Posted By: Oleg
Date Posted: 15 April 2009 at 8:21am
Hi,
 
It doesn't look like Expand button - too large. Mybe you customized standard toolbar class somehow ?


-------------
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