CreateCommandBar Method
Description
Universal method for creating commandbar popup objects.
Syntax
Public Function CreateCommandBar( _
ByVal [ClassName](#) As String _
) As [CommandBar](XtremeCommandBars~CommandBar.md)
Parameters
-
ClassName
Name of the class of commandbar popup control to create. The list of available classes is below: -
CXTPPopupBar CXTPPopupToolBarCXTPRibbonSystemPopupBarCXTPRibbonSystemPopupBarPageCXTPFloatingPopupBar- (Shows a floating popup that looks exactly like an expanded menu, i.e., the File menu when expanded)
Return Type
Returns a commandbar popup control containing a commandbar popup control of the specified class.
Remarks
After the CreateCommandBar method is used to create a commandbar popup control, it can then be assigned to the commandbar property of popup controls.
CreateCommandBar is needed to create and add some types of popup controls because not all classes have their own special type. For example, the CXTPRibbonSystemPopupBar and CXTPRibbonSystemPopupBarPage classes can't be created without the CreateCommandBar method because they have no special type. So you need to first create them using the CreateCommandBar method and then assign them to the popup control's commandbar property.
See Also

| Command Bars ActiveX Control v24.0 |
|---|
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.