Archicad C++ API
About Archicad add-on development using the C++ API.

[SOLVED] Dockable palette - is it possible?

Anonymous
Not applicable
Is it possible to create a dockable custom palette like Info Box - in the other words, is it possible to create a window, which can be made floating or docked to some side of the working area?
Thanks.
24 REPLIES 24
ReignBough
Enthusiast
Where/How to initialize Palette::SelectionChanged using ACAPI_Notify_CatchSelectionChange?
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi,

I think it's better if SelectionChanged belongs to PaletteObserver, and then you can initialise it in PanelOpened function like this:
GSErrCode __ACENV_CALL	PaletteObserver::SelectionChanged (const API_Neig* selElemNeig)
{
	// ...
}

void PaletteObserver::PanelOpened (const DG::PanelOpenEvent& /*ev*/) 
{
	// ...
	ACAPI_Notify_CatchSelectionChange (SelectionChanged);
}

void PaletteObserver::PanelClosed (const DG::PanelCloseEvent& /*ev*/) 
{
	// ...
	ACAPI_Notify_CatchSelectionChange (NULL);
}
Best Regards,
Tibor
ReignBough
Enthusiast
how to catch the dock/undock events?
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
ReignBough wrote:
how to catch the dock/undock events?
Please visit the following topic, I answered the question there:
http://archicad-talk.graphisoft.com/viewtopic.php?t=47543
ReignBough
Enthusiast
Thanks. That's a big help.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!