Print Page | Close Window

CommandBars Update Error

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=19052
Printed Date: 24 November 2024 at 10:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars Update Error
Posted By: l.arantes
Subject: CommandBars Update Error
Date Posted: 10 October 2011 at 2:36pm
Hello Guys,
 
I need to hide the icons and groups of my Commandbars when the user don´t have the permission to use some resources of my application, I am setting the control.visible = False. But when I hide they and, then I access my application with another user that have the permission to use these resources, I set the control.visible = true, but it´s not working, because the commandbars_update isn´t recognizing the controls that had been hidden.
 
Exemple:
 
After hide the controls:
Existing Controls   -> 1,2,3
Hidden Controls    -> 2
What the Commandbars_Update is recognizing   -> 1,3
                                                                                                         
I need to set the control2.visible = true but the Commandbars_Update is not recognizing it.
 
 
My questions:
 
1 - How can I solve this error?
2 - How can I reset the CommandBars' componentst to the default state?
 
Thanks. Smile
 
P.S: Sorry about my english errors.



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