Print Page | Close Window

Customize Toolbar

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=4917
Printed Date: 20 June 2025 at 10:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customize Toolbar
Posted By: Detlev Schubert
Subject: Customize Toolbar
Date Posted: 29 August 2006 at 4:23pm
Hello,
 
isn't it possible that you can make a toolbaar "half" customize without customize-Dialog, so that a user only can choose between all available toolbar-Icons like here?
 
 
 
when I set CommandBars.EnableCustomization (False)  the Standard will be disabled so that it's not possible to show the right menu dialog. Perhaps there is a trick to make it possible ?
 
thx Detlev



Replies:
Posted By: Oleg
Date Posted: 30 August 2006 at 8:50am
Hello,
 
You can try catch InitCommandsPopup method and remove Customize button if found.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Detlev Schubert
Date Posted: 30 August 2006 at 8:55am
Hello Oleg my hero ;-)
 
hmm... sorry but I can't understand you. Please can you explain me what you mean ?
 
thx Detlev


Posted By: Oleg
Date Posted: 30 August 2006 at 11:56am
ok, ok. Here code:
 
Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)
    If (CommandBar.Controls.Count > 1) Then
        Dim LastControl As CommandBarControl
        Set LastControl = CommandBar.Controls(CommandBar.Controls.Count)
        If (LastControl.Id = XTP_ID_CUSTOMIZE) Then
            LastControl.Delete
        End If
    End If
End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Detlev Schubert
Date Posted: 30 August 2006 at 12:22pm
Hello Oleg,
 
great ... it works very fine too, and you are not only my hero, you makes my horrible rainy day to a sunshine day.
 
thx a lot
Detlev



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