Print Page | Close Window

[solved] CustomizeDialogPresent for ContextMenus

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=23263
Printed Date: 21 November 2024 at 4:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] CustomizeDialogPresent for ContextMenus
Posted By: tjsivies
Subject: [solved] CustomizeDialogPresent for ContextMenus
Date Posted: 09 February 2017 at 12:05am
I have created several Context Menus.
I only want 1 of these menus to be available for customization by the user.
I cannot find a way of only showing the 1 menu that I want to be customized.
I have tried using Contextmenu.CustomizeDialogPresent = False, but this returns a RTE 438.

It appears that the CustomizeDialogPresent property only works on CommandBars and not Contextmenus?


Please help me know of a way of not showing ContextMenus in the Customization Dialog.




-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6



Replies:
Posted By: tjsivies
Date Posted: 30 October 2017 at 12:37am
Just a note for anyone else that had this issue, Codejock fixed this BUG in v18.0.1


-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6


Posted By: olebed
Date Posted: 01 November 2017 at 6:30pm
Hello,

I have checked this with  Samples\CommandBars\VB\ActionsSample\frmMain.frm
Private Sub Form_Load()
.....
    Dim ContextMenu As CommandBar
    Set ContextMenu = CommandBars.ContextMenus.Add(400, "Context Menu")
.....
    ContextMenu.CustomizeDialogPresent = False
.....
and this works as expected. Investigate this sample and compare to your code.

Maybe you have tried next wrong code ?
Private Sub CommandBars_Customization(ByVal Options As XtremeCommandBars.ICustomizeOptions)
    Options.ShowMenusPage = True
    Options.ContextMenu.CustomizeDialogPresent = False
End Sub

Originally posted by tjsivies tjsivies wrote:

Just a note for anyone else that had this issue, Codejock fixed this BUG in v18.0.1
What exactly bug did you mean ?

Regards,
 Oleksandr Lebed


Posted By: tjsivies
Date Posted: 01 November 2017 at 7:33pm
This was an issue in v17 and was rectified in the v18.0.1 release.

Vlad confirmed this and advised that the update resolved the issue.



-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6


Posted By: olebed
Date Posted: 01 November 2017 at 7:35pm
So, have you tried to change ActionsSample as I wrote ?


Posted By: tjsivies
Date Posted: 01 November 2017 at 7:39pm
Yes. As stated this was resoled in v18.0.1.
Everything works fine now.
No more testing required.
Thx


-------------
Xtreme SuitePro (ActiveX) version 18.3.0

Windows 7 (64bit)

Visual Basic 6.0 SP6


Posted By: olebed
Date Posted: 01 November 2017 at 7:46pm
oops, I forgot to look at date of your first post :-)    I thought it was right before second post.



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