Print Page | Close Window

Set Visible False to popup

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=16042
Printed Date: 06 October 2024 at 1:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set Visible False to popup
Posted By: osimbr
Subject: Set Visible False to popup
Date Posted: 20 January 2010 at 6:50am
Hi,

My name is Renan Elias, and I'm a software developer from Paiva Piovesan, Brazil.
We are developing a new function in our system that will disable some commandbars controls.
In the commandbar, there are some popup menus and, if we set visible false to all control children of parents, when we click in the popup, show an ugly box without anything.

I'm sending a picture attached to this message to show the problema.



How can I set visible false in the popup if there are no visible childs?

OBS: I'm using VB6 and event "commandbar_update" to set visible true or false.

tks.



Replies:
Posted By: SuperMario
Date Posted: 20 January 2010 at 12:38pm
if there are no child items, then why not hide the entire menu?  If not, the you would need to change the control type until items are added.


Posted By: shipwreck
Date Posted: 20 January 2010 at 5:30pm
Definitely.
I would say use the commandbar_actions feature.
And Mario is right, if you have no child items just use a control other than the popup menu style.

-------------
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6



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