Print Page | Close Window

Locking Customization

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=1285
Printed Date: 16 May 2024 at 12:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Locking Customization
Posted By: MikeC
Subject: Locking Customization
Date Posted: 15 October 2004 at 8:50am
    I've been trying out the activex version and I'm wondering if there is a simple way to "disable" drag and drop customization for both docking panels and the command bars.

    Ie a newbie user enters a screen for the first time and starts clicking and dragging and generally mucking up a page, I'm looking something similar to XPs toolbar or IEs bar's locked state.  Ie, you have to go to a menu or right click to "turn on" the docking and customization abilities.  Just trying to prevent the "half my screen is gray" (ie dragging the windows taskbar halfway across the screen) problem from accidentally adjusting things.

     I might be overlooking something but I can't find it in the controls.





Replies:
Posted By: SuperMario
Date Posted: 15 October 2004 at 9:24am
Maybe something like to disable moving of commandbar:
    Commandbars(1).EnableDocking = False

Something like this to disable pane floating and closing:

    Pane.Options = PaneNoFloatable Or PaneNoCloseable

To completely disable docking then something like this:

Private Sub DockingPaneManager_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, Cancel As Boolean)
    On Error Resume Next

    If Action = PaneActionDocking Then
         Cancel = True
    End If

End Sub



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