How do you add a BaseCommand to a custom BaseToolbar as an icon and text. This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap.
Cheers
|
How do you add a BaseCommand to a custom BaseToolbar as an icon and text. This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap. Cheers
| ||||
|
feedback
|
|
I didn't try the solution in the thread below but it looks correct to me: How to show caption and icon for basecommand Depending on how your toolbar is setup, the check for Enabled() can happen frequently. You may want to add a boolean flag to keep the SetAsIconAndText() function from constantly running. | |||
feedback
|
|
You need to create a toolbar class, IToolbarDef, to reference your BaseCommand icons to. Then create a resource bitmap and reference it in your BaseCommand class, see example below:
| |||
feedback
|