<?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: Palette Size property seems to add a border buffer in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5458923#M41839</link>
    <description>&lt;P&gt;You are misunderstanding me, my question is how to predict that buffer number.&lt;/P&gt;&lt;P&gt;It seems to be 6 on my system, and must be some kind of palette property that may or may not be variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The guys that know object arx could likely say exactly where its specified, if I can get their attention.&lt;/P&gt;&lt;P&gt;Its not a big deal though, as I am guessing its not easy to change if it is variable, so assuming 6 is not to dangerous.&lt;/P&gt;&lt;P&gt;Now if that number was 42, we might be onto something!!! (HGTTG...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions like this often reveal how green I am at windows programming, even though I am likely about as good as most people that went to school for engineering not CS.&amp;nbsp; Its tricky to get a&amp;nbsp;college trained&amp;nbsp;programmer that knows what to program, but easier to get an engineer that sees the gaps in tools so knows what should be written.&amp;nbsp; So you get chumps like me that cannot figure out where a window buffer is coming from &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jan 2015 16:37:04 GMT</pubDate>
    <dc:creator>JamesMaeding</dc:creator>
    <dc:date>2015-01-05T16:37:04Z</dc:date>
    <item>
      <title>Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5454965#M41837</link>
      <description>&lt;P&gt;If I do something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;mypalette.Size = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; System.Drawing.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Size&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(506, 100);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;the next time I check &lt;SPAN style="font-family: Consolas; font-size: small;"&gt;mypalette.Size&lt;/SPAN&gt;, its is 512,106.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Its adding 6 to the height and width.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Its not a problem, as I just account for this once known, but what is that 6 number coming from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;There is no margin or property of the palette I could see that made sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;I basically do not want to hardcode numbers, but grab them at runtime in case other machines do not have 6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2014 01:42:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5454965#M41837</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2014-12-30T01:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5458341#M41838</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish you a happy new year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay in getting back to you. We have just&amp;nbsp;got back to office after the holidays.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if the&amp;nbsp;MinimumSize of a paletteset is set using code, there is a limit on how much the paletteset can really be minimized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in a sample code that i tried, I had set the minimumsize to 100, 100&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, if I set the Size of the paletteset to 100,100 and then check the PaletteSet size, it turns out to be 158, 106.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the size of the paletteset is set to&amp;nbsp;159, 107, the size is retained without any&amp;nbsp;change to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AutoCAD requires a minimum size to display the title bar buttons regardless of what we set as minimumsize.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code, does the 6 get added to all&amp;nbsp;sizes of the palette set ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 06:25:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5458341#M41838</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-01-05T06:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5458923#M41839</link>
      <description>&lt;P&gt;You are misunderstanding me, my question is how to predict that buffer number.&lt;/P&gt;&lt;P&gt;It seems to be 6 on my system, and must be some kind of palette property that may or may not be variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The guys that know object arx could likely say exactly where its specified, if I can get their attention.&lt;/P&gt;&lt;P&gt;Its not a big deal though, as I am guessing its not easy to change if it is variable, so assuming 6 is not to dangerous.&lt;/P&gt;&lt;P&gt;Now if that number was 42, we might be onto something!!! (HGTTG...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions like this often reveal how green I am at windows programming, even though I am likely about as good as most people that went to school for engineering not CS.&amp;nbsp; Its tricky to get a&amp;nbsp;college trained&amp;nbsp;programmer that knows what to program, but easier to get an engineer that sees the gaps in tools so knows what should be written.&amp;nbsp; So you get chumps like me that cannot figure out where a window buffer is coming from &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 16:37:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5458923#M41839</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-01-05T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459140#M41840</link>
      <description>&lt;P&gt;You didn't answer Balaji's question so we can't be sure, but it looks to me like you're the one misunderstanding him.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 18:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459140#M41840</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-05T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459312#M41841</link>
      <description>&lt;P&gt;Hey there Owen, good to see you are lurking a bit here!&lt;/P&gt;&lt;P&gt;Balagi, You seem to be talking about an absolute minimum size, as if I want the palette to be a little rectangle.&lt;/P&gt;&lt;P&gt;Your point is useful, as I had never thought about that, but its not related to my question about a "border buffer" as in the title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to answer his question - yes, 6 was always added to the size I told the palette to be.&lt;/P&gt;&lt;P&gt;I only tried on sizes above that minimum size he ran into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This all came up because I have a button to make the palette go to some simple mode by getting smaller, then it goes back to full mode by same button.&lt;/P&gt;&lt;P&gt;You cannot set size to 200,200, and then check if size&amp;nbsp;is 200x200, you have to check if its 206x206.&lt;/P&gt;&lt;P&gt;Once you know that, its easy, but will the 6 number always hold? Its rather magical....&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:08:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459312#M41841</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-01-05T21:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459351#M41842</link>
      <description>&lt;P&gt;What is the reported size if you set it to 206, 206? And if you set it to 400, 400?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this&amp;nbsp;is a diagnostic exercise, not an attempt to solve your problem. I think that is why you are confused by Balaji's post.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459351#M41842</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-05T21:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459399#M41843</link>
      <description>&lt;P&gt;as I recall, it added 6 no matter what the specific size was I was telling it to be.&lt;/P&gt;&lt;P&gt;I am restructuring my prog for the moment so cannot re-test for a day or so though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This buffer its adding is actually not surprising to me at all, since the palette is a container for the usercontrol.&lt;/P&gt;&lt;P&gt;I just do not know what object the palette derives from down deep.&lt;/P&gt;&lt;P&gt;I'll test more in a bit.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 22:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459399#M41843</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-01-05T22:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459483#M41844</link>
      <description>&lt;P&gt;I see what is going on now.&lt;/P&gt;&lt;P&gt;First, the width behaves what I would call "properly.&lt;/P&gt;&lt;P&gt;You can set minwidth to 500, and width to 500 and it works. It does not add 6.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The height is different. If you set minheight to 200, and then set height to 200, you get 206.&lt;/P&gt;&lt;P&gt;This only happens at the minheight number.&lt;/P&gt;&lt;P&gt;If you set height to say 400, it stick, no 6 added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution I have found is to set the minsize of the paletteset to your desired min height - 6.&lt;/P&gt;&lt;P&gt;Then the code setting it to desired min height does not "bump" into the minimum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My title bar is on left, so very odd this only happens on height.&lt;/P&gt;&lt;P&gt;I think I see where Balagi was going, but the words "Even if the&amp;nbsp;MinimumSize of a paletteset is set using code, there is a limit on how much the paletteset can really be minimized." sounded like some built-in minimum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not hitting that 158, 100 number he seemed to. I can set my minimums very low so am not sure if that plays into the mix at some level.&lt;/P&gt;&lt;P&gt;Luckily, I do not plan on making palettes super small.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 01:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459483#M41844</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2015-01-06T01:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Palette Size property seems to add a border buffer</title>
      <link>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459501#M41845</link>
      <description>&lt;P&gt;There are some oddities with the border, but I can't give you a definitive answer about why you're getting those results.&amp;nbsp;You also have to beware of floating vs. docked differences.&amp;nbsp;Given the pitiful documentation you really have to just test and&amp;nbsp;carefully confirm your assumptions, then do what&amp;nbsp;it takes&amp;nbsp;to make it work.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:03:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/palette-size-property-seems-to-add-a-border-buffer/m-p/5459501#M41845</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-01-06T02:03:07Z</dc:date>
    </item>
  </channel>
</rss>

