Print Page | Close Window

SetVisible problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10392
Printed Date: 15 November 2025 at 1:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetVisible problem
Posted By: robosport
Subject: SetVisible problem
Date Posted: 29 April 2008 at 5:31am
I'm using CommandBars->FindControl( xtpControlButton, menuItemID, FALSE, TRUE ); to locate a hidden CXTPControl* and then calling SetVisible member of the CXTPControl to show it.
 
I have confirmed (debugger step throughs and asserts) I'm finding the pointer to the control just fine everytime, but sometimes when I call SetVisible( TRUE ) the control stays hidden.  I know the call is being made with the TRUE parameter but the control remains hidden - sometimes but not always .
 
Is there something else I need call after SetVisible to force a control, menu, interface, etc. to update?
 
Thanks!
 
 



Replies:
Posted By: Oleg
Date Posted: 29 April 2008 at 7:59am
Hi,
FindControl is very bad solution - user can remove this control, copy to some toolbar etc. Use Update handlers or Actions.
 
See Actions sample.


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