Print Page | Close Window

how to disable docking panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1511
Printed Date: 01 October 2024 at 3:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to disable docking panes
Posted By: tobi
Subject: how to disable docking panes
Date Posted: 09 December 2004 at 12:43pm
Is there a way to disable/gray out a docking pane ! In my VB app there are some parts in a docking pane which should be only useable when certain circumstances are given. While not I want to deactivate the pane - but I donīt know how to do this ...



Replies:
Posted By: SuperMario
Date Posted: 09 December 2004 at 10:35pm
You can't grey the pane out, but to disable the pane you can use the Action event.  (I haven't tested this, so it might not work, I am not at computer with codejock now).  In the Action event, try something like:

If Pane.Id = ID_OF_PANE_TO_DISABLE then
     Cancel = TRUE
....Then disable the form that is attached to the pane.
Else
......
End If

IfI am correct, this should disable all pane actions.  And disableing the form will make all controls inactive.  If that don't work, place the controls on the form in a picturebox, this way you can disable the picturebox along with all the controls within it.



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