We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2018-05-07 02:56 PM - last edited on 2022-12-06 01:39 PM by Daniel Kassai
// Initialising callback DGModelessInit(ACAPI_GetOwnResModule(), 32400, ACAPI_GetOwnResModule(), PaletteCallback, (DGUserData)&pltctrl, true); // Inside the callback, on DG_MSG_INIT : ACAPI_RegisterModelessWindow(dialID, PaletteAPIControlCallBack, API_PalEnabled_FloorPlan + [...] + API_PalEnabled_Layout)Closing functions :
if (pltctrl.dialID != 0 && DGIsDialogOpen(pltctrl.dialID)) DGModelessClose(pltctrl.dialID); if (pltctrl.dialID != 0) { DGEndProcessEvents(pltctrl.dialID); ACAPI_UnregisterModelessWindow(pltctrl.dialID); DGDestroyModelessDialog(pltctrl.dialID); DGDestroyPalette(pltctrl.dialID); }Using the debugger, I made sure every of these functions were launched.