|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICustomizeDialog
Provides access to members that control the customize dialog.
Method Summary | |
---|---|
void |
closeDialog()
Closes the customize dialog. |
String |
getCommandsCategory()
The GUID of the component category used for commands. |
String |
getDialogTitle()
The title of the customize dialog. |
Object |
getDoubleClickDestination()
The ToolbarControl commands are added to when double clicked. |
String |
getMenusCategory()
The GUID of the component category used for menu definitions. |
String |
getToolbarsCategory()
The GUID of the component category used for toolbar definitions. |
boolean |
isDialogActive()
Indicates if the customize dialog is active on the screen. |
boolean |
isShowAddFromFile()
Indicates if the 'Add From File' button is available on the customize dialog. |
void |
setCommandsCategory(String pVal)
The GUID of the component category used for commands. |
void |
setDialogTitle(String pVal)
The title of the customize dialog. |
void |
setDoubleClickDestination(Object pToolbarControl)
Sets the ToolbarControl commands are added to when double clicked. |
void |
setMenusCategory(String pVal)
The GUID of the component category used for menu definitions. |
void |
setShowAddFromFile(boolean pVal)
Indicates if the 'Add From File' button is available on the customize dialog. |
void |
setToolbarsCategory(String pVal)
The GUID of the component category used for toolbar definitions. |
void |
startDialog(int hWndParent)
Starts the modeless customize dialog. |
Method Detail |
---|
void startDialog(int hWndParent) throws IOException, AutomationException
Opens a modeless CustomizeDialog on the screen and fires the ICustomizeDialogEvents::OnStartDialog event. The CustomizeDialog allows users to add commands, menus, palettes and toolsets onto the ToolbarControl by ether dragging and dropping or double clicking them.
The CustomizeDialog can be closed through user interaction, calling the CloseDialog method, or when the CustomizeDialog object is released.
hWndParent
- The hWndParent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCommandsCategory() throws IOException, AutomationException
The guid of the component category used by the CustomizeDialog to read ICommand objects. By default the CommandsCategory is set to the "ESRI Controls Commands" category:
"{B284D891-22EE-4F12-A0A9-B1DDED9197F4}"
Set the CommandsCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom commands rather than the default control commands. The StartDialog method will extract all valid commands from this component category.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCommandsCategory(String pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getToolbarsCategory() throws IOException, AutomationException
The guid of the component category used by the CustomizeDialog to read IToolbarDef objects. By default the ToolbarsCategory is set to the "ESRI Controls Toolbars" category:
"{5155BBC7-A6E9-4AF9-81DB-A16742D5A026}"
Set the ToolbarsCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom toolsets rather than the default control toolsets. The StartDialog method will extract all valid toolsets from this component category.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setToolbarsCategory(String pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void closeDialog() throws IOException, AutomationException
Closes the CustomizeDialog if it is active on the screen and fires the ICustomizeDialogEvents::OnCloseDialog event.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDialogActive() throws IOException, AutomationException
Indicates whether the modeless CustomizeDialog is currently on the screen. The CustomizeDialog can be closed through user interaction, calling the CloseDialog method, or when the CustomizeDialog object is released.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDialogTitle() throws IOException, AutomationException
The title displayed in the CustomizeDialog window.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDialogTitle(String pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getDoubleClickDestination() throws IOException, AutomationException
The ToolbarControl passed to the SetDoubleClickDestination method that new items will be added to when an ICommand, IMenuDef, IPaletteDef or IToolbarDef object is double clicked upon in the CustomizeDialog window.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDoubleClickDestination(Object pToolbarControl) throws IOException, AutomationException
Determines the ToolbarControl that new items will be added to when an ICommand, IMenuDef, IPaletteDef or IToolbarDef object is double clicked upon in the CustomizeDialog.
pToolbarControl
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isShowAddFromFile() throws IOException, AutomationException
Determines whether the CustomizeDialog has an 'Add From File..' button. Clicking this button enables users to browse and select *.dll and *.tlb files containing objects that implement ICommand, IMenuDef, IPaletteDef and IToolbarDef. The selected *.dll or *.tlb will be registered and the objects registered in the appropriate CommandsCategory, MenusCategory, PalettesCategory and ToolbarsCategory component categories. This property is true by default.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setShowAddFromFile(boolean pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMenusCategory() throws IOException, AutomationException
The guid of the component category used by the CustomizeDialog to read IMenuDef objects. By default the MenusCategory is set to the "ESRI Controls Menus" category:
"{B7D74382-06A8-483F-8FE5-6FB08FAA356A}"
Set the MenusCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom menus rather than the default control menus. The StartDialog method will extract all valid menus from this component category.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMenusCategory(String pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |