The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Barry Kelly, Karl Ottenstein, LaszloNagy, ejrolon, gkmethy, Tibor Lorántfy, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik

By jcimentarov
#271885
Hello Archicad Developers!!!

I have a two questions about palettes:

I need to have something like the BIMObject palette with those buttons which have images.. I found an example http://archicad-talk.graphisoft.com/viewtopic.php?t=47307&highlight=modeless+palette in the forum with a modeless palette which has two buttons and everything seems to work fine with it, but how can I add images to my buttons instead of text like in the BIM Object?

Also another thing I noticed is that i cannot "dock" it whenever I want in Archicad. It always stays on top.. How to make it dockable?

Second question is how to insert it into the windows->palettes, just like BIMObjekt is done, so I can invoke it from there?

I'll be very thankful for any kind of help!

All the best,
Julian
By jcimentarov
#271941
I was able to do it a dockable palette, and replaced the buttons with icons. The only thing that I don't know how to do is to put it into the windows->palette menu where are the other palettes now. Any ideas how to do it ?
User avatar
By Ralph Wessel
#271994
jcimentarov wrote:I was able to do it a dockable palette, and replaced the buttons with icons. The only thing that I don't know how to do is to put it into the windows->palette menu where are the other palettes now. Any ideas how to do it ?

When you call ACAPI_Register_Menu to register your menu, set the 3rd parameter (menuPosCode) to MenuCode_Palettes.