 |
SOLIDWORKS Electrical API
2020.0.5
Electrical API
|
Go to the documentation of this file.
4 midl_pragma warning(disable:2111)
9 import "EnumDefinition.idl";
18 uuid(30E4BDC2-FF3F-490A-BF15-52332FA7CFEF),
21 pointer_default(unique)
263 uuid(779E10A8-9370-4F87-9EE7-FD051EF33DA7),
266 pointer_default(unique)
370 uuid(16767327-DD46-4EA7-AD9A-0844E008A4B2),
373 pointer_default(unique)
550 uuid(424CCD51-1FDC-4CC5-83C3-D9D42A8376D4),
553 pointer_default(unique)
IEwRibbonGroupX getGroupAt(int iIndex, EwErrorCode *errorCode)
Return the specified group of the current tab.
EwErrorCode removeGroup(int iIndex)
Remove a group specified by the index.
EwErrorCode setDescription(BSTR strDescription)
Set a description for this control.
IEwRibbonControlX getControlAt(int iIndex, EwErrorCode *errorCode)
Return the specified control of the current group.
EwErrorCode setCommand(BSTR strCommand)
Set the name of the command associated with this ribbon control.
IEwRibbonTabX insertTab(BSTR strCaption, int iIndex, EwErrorCode *errorCode)
Insert new tab for ribbon bar to specified position and return the IEwRibbonTabX inserted.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
BSTR getCaption(EwErrorCode *errorCode)
Return the caption of this control.
int getGroupCount(EwErrorCode *errorCode)
Return the number of group in the current tab.
EwRibbonButtonSize
Ribbon bar button's styles.
Definition: EnumDefinition.idl:218
int getControlCount(EwErrorCode *errorCode)
Return the number of control in the current group.
EwErrorCode setEnabled(VARIANT_BOOL bEnabled)
Set whether the tab is enabled.
EwErrorCode setVisible(VARIANT_BOOL bVisible)
Hide or show the control.
EwErrorCode setCaption(BSTR strCaption)
Set a new caption for this ribbon group.
IEwRibbonTabX getSelectedTab(EwErrorCode *errorCode)
Return an IEwRibbonTabX that encapsulate the selected Ribbon Tab.
VARIANT_BOOL isEnabled(EwErrorCode *errorCode)
Determine if the tab is enabled.
EwErrorCode removeControl(int iIndex)
Remove a control specified by the index.
IEwRibbonTabX getTabAt(int iIndex, EwErrorCode *errorCode)
Return an IEwRibbonTabX that encapsulate the Ribbon Tab specified by index.
BSTR getShortcutText(EwErrorCode *errorCode)
Get the control's shortcut.
Use this interface to manage the Ribbon group.
Definition: EwApplicationRibbon.idl:269
EwErrorCode setCaption(BSTR strCaption)
Set a new caption for this control.
EwErrorCode setCaption(BSTR strCaption)
Set a new caption for this tab.
EwRibbonControlType
Type of the control that can be used in a ribbon.
Definition: EnumDefinition.idl:181
Use this interface to manage the Ribbon tabs.
Definition: EwApplicationRibbon.idl:376
BSTR getDescription(EwErrorCode *errorCode)
Return the description of this control.
int getTabCount(EwErrorCode *errorCode)
Return the number of tab of this ribbon bar.
EwRibbonButtonStyle
Ribbon bar button's styles.
Definition: EnumDefinition.idl:202
EwErrorCode setIconFromImage(BSTR strImageFilePath, EwRibbonButtonSize eRibbonButtonSize, COLORREF crMask)
Add an icon from file.
EwErrorCode setToolTip(BSTR strToolTip)
Set a new ToolTip for this control.
Use this interface to manage the Ribbon Bar.
Definition: EwApplicationRibbon.idl:556
long getID(EwErrorCode *pErrorCode)
Get the Id's of control.
EwErrorCode setVisible(VARIANT_BOOL bVisible)
Hide or show the tab.
EwErrorCode removeTab(int iIndex)
Remove a Ribbon Tab specified by the index.
EwErrorCode setBeginGroup(VARIANT_BOOL bBeginGroup)
Begin a new group using a separator.
VARIANT_BOOL isBeginGroup(EwErrorCode *errorCode)
Determine if the control is a separator.
IEwRibbonControlX addControl(EwRibbonControlType eType, BSTR strCommand, EwErrorCode *errorCode)
Add a new control at the end of the ribbon group.
BSTR getCaption(EwErrorCode *errorCode)
Return the caption of this tab.
VARIANT_BOOL isVisible(EwErrorCode *errorCode)
Determine if the tab is visible.
EwErrorCode removeAllGroup()
Remove all groups.
IEwRibbonGroupX insertGroup(BSTR strCaption, int iIndex, EwErrorCode *errorCode)
Add a new group at the specified index of the ribbon tab.
EwErrorCode setSelectedTab(int iIndex)
Select a Ribbon Tab.
long getID(EwErrorCode *pErrorCode)
Get the Id's of group.
EwErrorCode setShortcutText(BSTR strShortcutText)
Set the shortcut string of the control.
BSTR getCaption(EwErrorCode *errorCode)
Return the caption of this ribbon group.
EwErrorCode removeAll()
Remove all controls.
IEwRibbonTabX addTab(BSTR strCaption, EwErrorCode *errorCode)
Return an IEwRibbonTabX added to the Ribbon Tab.
EwErrorCode setStyle(EwRibbonButtonStyle buttonStyle)
Set the style of the control.
VARIANT_BOOL isEnabled(EwErrorCode *errorCode)
Determine if the control is enabled.
Use this interface to manage the control on Ribbon tab.
Definition: EwApplicationRibbon.idl:24
long getID(EwErrorCode *pErrorCode)
Get the Id's of Tab.
VARIANT_BOOL isVisible(EwErrorCode *errorCode)
Determine if the control is visible.
IEwRibbonGroupX addGroup(BSTR strCaption, EwErrorCode *errorCode)
Add a new group at the end of the ribbon tab.
BSTR getToolTip(EwErrorCode *errorCode)
Return the ToolTip of this control.
EwErrorCode setEnabled(VARIANT_BOOL bEnabled)
Set whether the control is enabled.
BSTR getCommand(EwErrorCode *errorCode)
Return the text of parameter strCommand used when calling EwRibbonGroupX::addControl.
EwRibbonButtonStyle getStyle(EwErrorCode *errorCode)
Get the control's style.