| Adding icons to the palette [message #884175] |
Sun, 10 June 2012 06:04  |
David cousinsa Messages: 1 Registered: June 2012 |
Junior Member |
|
|
Hello,
I've done the graphiti tutorial (not every part, but almost), i registered an ImageProvider, i modified the palette with a MuseeToolBehaviorProvider.
When i add a ObjectCreationEntry to a PaletteCompartmentEntry, we use a "getCreateImageId()" as parameter. I guess it represents the small icon in the palette to show a small picture of what we are going to add. However, i can't find where we define this imageid (in the createFeature ?), i already searched, but i only find a setImageId for a contextButton, not for a CreateFeature.
So, my question is, how can i add this small picture in my Palette ?
Thank you for your time
|
|
|
| Re: Adding icons to the palette [message #884508 is a reply to message #884175] |
Mon, 11 June 2012 04:08  |
Michael Wenz Messages: 1267 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Usually, you would simply define your CreateFeature and override
getCreateImageId(). The create features are automatically added to the
editor's palette along with the icon, there's no need to modify editor code
for that.
Does that help?
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.01842 seconds