2019-12-02
10:18 AM
- last edited on
2022-09-29
09:54 AM
by
Daniel Kassai
Solved! Go to Solution.
2019-12-02 01:00 PM
class FavoritePalette : public DG::Palette {};Could you please show your ACAPI_RegisterModelessWindow() call?
const GS::Guid paletteGuid ("{DAA252EE-CFB4-42BA-8483-0D255D03D17E}"); const Int32 paletteRefId = (Int32) GS::GenerateHashValue (paletteGuid);then use these in your ACAPI_RegisterModelessWindow() call.
2019-12-02 01:00 PM
class FavoritePalette : public DG::Palette {};Could you please show your ACAPI_RegisterModelessWindow() call?
const GS::Guid paletteGuid ("{DAA252EE-CFB4-42BA-8483-0D255D03D17E}"); const Int32 paletteRefId = (Int32) GS::GenerateHashValue (paletteGuid);then use these in your ACAPI_RegisterModelessWindow() call.
2019-12-03 02:18 AM
Akos wrote:Thanks.
Hi,
The dialog you register should inherit from DG::Palette:
class FavoritePalette : public DG::Palette {};Could you please show your ACAPI_RegisterModelessWindow() call?
Also, make sure that you return APIAddOn_Preload from your CheckEnvironment() function.
A trick: add a GUID for your palette, and generate the reference ID from it, to ensure that it's unique:const GS::Guid paletteGuid ("{DAA252EE-CFB4-42BA-8483-0D255D03D17E}"); const Int32 paletteRefId = (Int32) GS::GenerateHashValue (paletteGuid);then use these in your ACAPI_RegisterModelessWindow() call.
Best, Akos