Print Search Rate
    
   04-23-2003, 3:38 PM
HOWTO: How do I prevent the user from customizing the toolbar?

ActiveBar 2.0 allows you to have several different levels of end-user customization including the option to create a personalized custom dialog using the CustomizedListBox control. A new property, UserDefinedCustomization, has been added in ActiveBar 2.0.When this property is set to false the default customize dialog is shown. When UserDefinedCustomization is set to true, you can display the custom dialog you created.

Generally there are five levels of customization:

Level 1 - Prevent user from customizing (deleting, moving, renaming) band tools:

Remove (un-check) the band's Customize flag.

Level 2 - Prevent user from customizing tools and hiding the band:

Remove (un-check) the band's Customize and Hide flags.

Note: Removing the Hide flag will remove the band from the system customize menu and the Toolbars tab in the customize dialog.

Level 3 - Prevent user from customizing tools, hiding and moving the band:

Remove (un-check) the band's Customize and Hide flags. Add (check) the band's Fixed flag. Set the toolbar's GrabHandleStyle to ddGSNone.

Level 4 - Disable all user customization options:

Remove (un-check) the band's Customize and Hide flags. Add (check) the band's Fixed flag. In the BandOpen event, when the system customize menu is displayed set cancel to true.

If Band.Name = "SysCustomize" Then
   'Stops system customize menu from being displayed
   Cancel = True
End If

Set ActiveBar's UserDefinedCustomization to True.

Level 5 - Display personalized customize dialog:

Set ActiveBar's UserDefinedCustomization to True. In the CustomizeBegin event call the Customize method with ddCTCustomizeStart and display your customize dialog.

Private Sub ActiveBar2_CustomizeBegin()
   'Start user customization
   ActiveBar2.Customize ddCTCustomizeStart
   frmCustomize.Show
End Sub


GrapeCity » Frequently Aske... » ActiveBar FAQ » HOWTO: How do I prevent the user from customizing the toolbar?
Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.