<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to dock the RollDownPalette in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/357720#M1135</link>
    <description>&lt;P&gt;julien quadra&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; For a palette to be dockable, it has to have the noGrow argument in the grc file:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, I think that the argument to be added to the grc file is not noGrow but grow.&lt;BR /&gt;Another common palette that I have implemented is docking with argument grow and not docking with noGrow.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please try it in your environment.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- - -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, the problem in this thread is not a general palette that inherits the DG::Palette class as you replied&lt;BR /&gt;A special palette that inherits from the UD::RollDownPalette class.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I made a simple sample. (attached image)&lt;BR /&gt;This is the undocked state, but it's working fine in our environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This roll-down palette has a structure like a parent with multiple tab pages as children,&lt;BR /&gt;Each tab page has its own resources and classes.&lt;/P&gt;&lt;P&gt;The parent page has a class but no resources.&lt;BR /&gt;(The resource in the green part of the image is just the text provided for the child palette heading)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also wanted to specify grow as an argument if the parent resource exists&lt;BR /&gt;Cannot be specified because the resource itself does not exist.&lt;/P&gt;&lt;P&gt;I think that the child tab page is probably not related to docking&lt;BR /&gt;These are also tab pages, not palettes, so I don't think grc has any items related to docking.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It may be a difficult problem, but if there is someone with knowledge&lt;BR /&gt;I would like you to help me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/55470i87B23CAE57361D32/image-size/large?v=v2&amp;amp;px=999" border="0" alt="TestRolldownPalette.jpg" title="TestRolldownPalette.jpg" /&gt;</description>
    <pubDate>Sat, 01 Oct 2022 12:53:18 GMT</pubDate>
    <dc:creator>satoshi shimokura</dc:creator>
    <dc:date>2022-10-01T12:53:18Z</dc:date>
    <item>
      <title>How to dock the RollDownPalette</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/356940#M1133</link>
      <description>&lt;P&gt;hello.&lt;BR /&gt;Always I am indebted.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried making a RollDownPalette by referring to the BasicElementIconsRollDownDialog in the DG_Test sample.&lt;BR /&gt;I'm in trouble because I can't make it a docking palette.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When creating a general palette by inheriting the Palette class, in the constructor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;const GS::Guid TestPaletteGuid{ "C67E8137-A2AC-42FD-BDE6-413F509731B8" };

// constructor
TestPalette::TestPalette()
    : DG::Palette(ACAPI_GetOwnResModule(), ID_TEST_PALETTE, ACAPI_GetOwnResModule(), 
                  TestPaletteGuid)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that you can make it a docking palette by specifying a Guid like this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, in order to create a RollDownPalette, you must inherit the RollDownPalette class instead of the Palette class,&lt;BR /&gt;I wrote this in the constructor, but it doesn't dock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;const GS::Guid TestPaletteGuid{ "C67E8137-A2AC-42FD-BDE6-413F509731B8" };

// constructor
TestPalette::TestPalette(DG::NativePoint* posistion)
    :UD::RollDownPalette(TestPaletteGuid, posistion, Close)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Guid is given to the constructor of the base class, but this Guid may not be inherited to the Palette of the base class.&lt;BR /&gt;I also thought that there might be other constructors, so I searched for other constructors of the RollDownPalette class, but found only these constructors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RollDownPalette (const GS::Guid&amp;amp; guid, CloseType closeType = NoClose,
                 CaptionType captionType = TopCaption, FrameType frameType = NormalFrame);
RollDownPalette (const GS::Guid&amp;amp; guid, const DG::NativePoint* position = nullptr, 
                 CloseType closeType = NoClose, CaptionType captionType = TopCaption, 
                 FrameType frameType = NormalFrame);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since there is a RollDownPalette that is docked with the palettes provided in Archicad (for example, the toolbox docked at the left end of the screen), I think it will be possible...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you know how to dock the RollDownPalette, please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 13:03:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/356940#M1133</guid>
      <dc:creator>satoshi shimokura</dc:creator>
      <dc:date>2022-09-24T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to dock the RollDownPalette</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/357113#M1134</link>
      <description>&lt;P&gt;For a palette to be dockable, it has to have the noGrow&amp;nbsp; argument in the grc file:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;'GDLG'  JKSRFTOOLS_JKPLT_RESID   Palette | leftCaption | noGrow | close        0    0  80  34  "JKPalette Example" {
/* [ 1] */ IconButton            5  2   30   30     JKSettings_IconId
/* [ 2] */ IconButton           40  2   30   30     JKZoneToolLarge_IconId
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 15:35:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/357113#M1134</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-09-26T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to dock the RollDownPalette</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/357720#M1135</link>
      <description>&lt;P&gt;julien quadra&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; For a palette to be dockable, it has to have the noGrow argument in the grc file:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, I think that the argument to be added to the grc file is not noGrow but grow.&lt;BR /&gt;Another common palette that I have implemented is docking with argument grow and not docking with noGrow.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please try it in your environment.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- - -&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, the problem in this thread is not a general palette that inherits the DG::Palette class as you replied&lt;BR /&gt;A special palette that inherits from the UD::RollDownPalette class.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I made a simple sample. (attached image)&lt;BR /&gt;This is the undocked state, but it's working fine in our environment.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This roll-down palette has a structure like a parent with multiple tab pages as children,&lt;BR /&gt;Each tab page has its own resources and classes.&lt;/P&gt;&lt;P&gt;The parent page has a class but no resources.&lt;BR /&gt;(The resource in the green part of the image is just the text provided for the child palette heading)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also wanted to specify grow as an argument if the parent resource exists&lt;BR /&gt;Cannot be specified because the resource itself does not exist.&lt;/P&gt;&lt;P&gt;I think that the child tab page is probably not related to docking&lt;BR /&gt;These are also tab pages, not palettes, so I don't think grc has any items related to docking.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It may be a difficult problem, but if there is someone with knowledge&lt;BR /&gt;I would like you to help me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/55470i87B23CAE57361D32/image-size/large?v=v2&amp;amp;px=999" border="0" alt="TestRolldownPalette.jpg" title="TestRolldownPalette.jpg" /&gt;</description>
      <pubDate>Sat, 01 Oct 2022 12:53:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-dock-the-RollDownPalette/m-p/357720#M1135</guid>
      <dc:creator>satoshi shimokura</dc:creator>
      <dc:date>2022-10-01T12:53:18Z</dc:date>
    </item>
  </channel>
</rss>

