CreateCommandBarControl Method
Description
Universal method for creating command bar controls.
Syntax
Public Function CreateCommandBarControl( _
ByVal [ClassName](#) As String _
) As [CommandBarControl](XtremeCommandBars~CommandBarControl.md)
Parameters
-
ClassName
Name of the class of control to create. The list of available classes is below: -
CXTPControlButton
- CXTPControlCheckBox
- CXTPControlColorSelector
- CXTPControlComboBox
- CXTPControlEdit
- CXTPControlFontComboBox
- CXTPControlGallery
- CXTPControlLabel
- CXTPControlPopup
- CXTPControlPopupColor
- CXTPControlRadioButton
- CXTPControlWindowList
- CXTPControlWorkspaceActions
- CXTPControlToolbars
- CXTPRibbonControlSystemButton
- CXTPRibbonControlSystemPopupBarButton
- CXTPRibbonControlSystemPopupBarListCaption
- CXTPRibbonControlSystemPopupBarListItem
- CXTPRibbonControlSystemRecentFileList
- CXTPControlRecentFileList
Return Type
Returns a command bar control containing a control of the specified class.
Remarks
After the CreateCommandBarControl method is used to create a control, it must be added using the Add method.
CreateCommandBarControl is needed to create and add some types of controls because not all classes have their own special type. For example, the CommandBarControlSelector and CommandBarPopupControl classes can't be added to a controls collection using the Add method because they have no special type. So you need to first create them using the CreateCommandBarControl method and then use the Add method to add them to the controls collection.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.