Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - how to disable docking panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to disable docking panes

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: how to disable docking panes
    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 ...
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.