Print Page | Close Window

Hide "x" in Command Bar

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=10520
Printed Date: 26 April 2024 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Hide "x" in Command Bar
Posted By: rokky05
Subject: Hide "x" in Command Bar
Date Posted: 06 May 2008 at 5:56am
Hi, when user moves Command Bar on window and places it for example on the middle of window Command Bar is represented like separate window with possibility to close Command Bar ("x")  and when click on left button on mouse display menu where is possibility to hide Command Bar, possibly hide this possibility?



Replies:
Posted By: younicke
Date Posted: 06 May 2008 at 6:10am
are you referring to the toolbars?

if you are referring to the toolbars then

    Dim Toolbar As CommandBar
    Set Toolbar = CommandBars.Add("Standard", xtpBarTop)
    Toolbar.Closeable = False


i hope this helps


edit:
im sorry i didnt realize this is in the mfc section. my bad. :)


Posted By: rokky05
Date Posted: 06 May 2008 at 6:42am

If I do this:

pToolBarCombo->m_bCloseable = FALSE;

VS display error:
cannot access protected member declared in class 'CXTPCommandBar'


Posted By: Oleg
Date Posted: 06 May 2008 at 10:16am
you need pToolBarCombo->SetCloseable(FALSE);

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