<?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: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189774#M75426</link>
    <description>Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton &lt;BR /&gt;
also&lt;BR /&gt;
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowminimizeButton &lt;BR /&gt;
&lt;BR /&gt;
these are in the initialize area of the code. Do you think something else in my code is swithching back off? If not known of the other code is relavant.</description>
    <pubDate>Fri, 18 Apr 2008 19:24:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-18T19:24:30Z</dc:date>
    <item>
      <title>Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189769#M75421</link>
      <description>Does any one know why this doesn't actually show a close button on a palette set? Do I need to enable some other method or reference or something before I get an X button on my palette?</description>
      <pubDate>Tue, 26 Feb 2008 19:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189769#M75421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-26T19:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189770#M75422</link>
      <description>I got an answer from Walmsley. Apparently it is required to mix in some arx code to actully get this to work. One more reason to stick with vba and let Gates keep his junk to himself</description>
      <pubDate>Fri, 18 Apr 2008 14:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189770#M75422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189771#M75423</link>
      <description>What you were told is not true.&lt;BR /&gt;
&lt;BR /&gt;
There's no need to 'mix some arx code' to get a close button to show on a pallete.&lt;BR /&gt;
&lt;BR /&gt;
All of my palettes have close buttons on them.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARTISTEROI&gt; wrote in message news:5908603@discussion.autodesk.com...&lt;BR /&gt;
I got an answer from Walmsley. Apparently it is required to mix in some arx code to actully get this to work. One more reason to stick with vba and let Gates keep his junk to himself&lt;/ARTISTEROI&gt;</description>
      <pubDate>Fri, 18 Apr 2008 15:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189771#M75423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189772#M75424</link>
      <description>really? can you let me know why my buttons dont appear on the pallette? The only code I can fine is the showclosebutton that a stated above, but it doesn't seem to do anything. Do I need to add something else to make it active?</description>
      <pubDate>Fri, 18 Apr 2008 17:24:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189772#M75424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T17:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189773#M75425</link>
      <description>Are you asking me to guess what your code does?&lt;BR /&gt;
&lt;BR /&gt;
Please post the relevant parts and I'll have a look.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARTISTEROI&gt; wrote in message news:5908912@discussion.autodesk.com...&lt;BR /&gt;
really? can you let me know why my buttons dont appear on the pallette? The only code I can fine is the showclosebutton that a stated above, but it doesn't seem to do anything. Do I need to add something else to make it active?&lt;/ARTISTEROI&gt;</description>
      <pubDate>Fri, 18 Apr 2008 18:40:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189773#M75425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T18:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189774#M75426</link>
      <description>Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton &lt;BR /&gt;
also&lt;BR /&gt;
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowminimizeButton &lt;BR /&gt;
&lt;BR /&gt;
these are in the initialize area of the code. Do you think something else in my code is swithching back off? If not known of the other code is relavant.</description>
      <pubDate>Fri, 18 Apr 2008 19:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189774#M75426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189775#M75427</link>
      <description>Sorry, I'm not interested in playing peek-a-boo.&lt;BR /&gt;
&lt;BR /&gt;
I said post the relevant parts of the code.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARTISTEROI&gt; wrote in message news:5909089@discussion.autodesk.com...&lt;BR /&gt;
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton &lt;BR /&gt;
also&lt;BR /&gt;
Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowminimizeButton &lt;BR /&gt;
&lt;BR /&gt;
these are in the initialize area of the code. Do you think something else in my code is swithching back off? If not known of the other code is relavant.&lt;/ARTISTEROI&gt;</description>
      <pubDate>Fri, 18 Apr 2008 20:15:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189775#M75427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T20:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189776#M75428</link>
      <description>I'll see if I can post something, but the code actually reads from a database, so all it really says is is stuff like "mdi.asp.feild6 = db.parameter.height" there isn't a whole lot of code to see. I will try to put together a pallette with a little more meat to it with the same inailizer on on the interface. I will get that up next week sometime since I will be out of the office untill Wednesday. Thanks for the help though.</description>
      <pubDate>Fri, 18 Apr 2008 22:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189776#M75428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T22:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189777#M75429</link>
      <description>You're misunderstanding what I mean by 'relevant'.&lt;BR /&gt;
&lt;BR /&gt;
I don't want/need to see code that reads from a database,&lt;BR /&gt;
only the code that creates and shows the PaletteSet.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARTISTEROI&gt; wrote in message news:5909269@discussion.autodesk.com...&lt;BR /&gt;
I'll see if I can post something, but the code actually reads from a database, so all it really says is is stuff like "mdi.asp.feild6 = db.parameter.height" there isn't a whole lot of code to see. I will try to put together a pallette with a little more meat to it with the same inailizer on on the interface. I will get that up next week sometime since I will be out of the office untill Wednesday. Thanks for the help though.&lt;/ARTISTEROI&gt;</description>
      <pubDate>Fri, 18 Apr 2008 23:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189777#M75429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-18T23:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189778#M75430</link>
      <description>Sorry Tony, the head programmer won't let me post any code for security reasons. So I guess we will have to figure this out ourselves. Thanks for trying to help us though.</description>
      <pubDate>Wed, 23 Apr 2008 18:47:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189778#M75430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-23T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189779#M75431</link>
      <description>&amp;gt;&amp;gt; Sorry Tony, the head programmer won't let me post any code for security reasons. &amp;lt;&amp;lt;&lt;BR /&gt;
&lt;BR /&gt;
LOL&lt;BR /&gt;
&lt;BR /&gt;
There's no security issues with posting a couple of lines of code that creates a paletteset and sets its style. &lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com</description>
      <pubDate>Wed, 23 Apr 2008 22:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189779#M75431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-23T22:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189780#M75432</link>
      <description>Tony I got permission to post this:&lt;BR /&gt;
&lt;BR /&gt;
        Dim ed As Editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
        Try&lt;BR /&gt;
&lt;BR /&gt;
            If ps Is Nothing Then&lt;BR /&gt;
                Dim myForm As ModelessForm = New ModelessForm()&lt;BR /&gt;
                ps = New Autodesk.AutoCAD.Windows.PaletteSet("MYPALLETTE")&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowTabForSingle&lt;BR /&gt;
		'Wouldn't this statement show the "X" on the Palette:&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowCloseButton&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowAutoHideButton&lt;BR /&gt;
&lt;BR /&gt;
                ps.MinimumSize = New System.Drawing.Size(300, 500)&lt;BR /&gt;
                ps.Opacity = 65&lt;BR /&gt;
                ps.Add("Search Catalog", myForm)&lt;BR /&gt;
&lt;BR /&gt;
                ps.Visible = True&lt;BR /&gt;
                ps.Dock = DockSides.Left&lt;BR /&gt;
            End If&lt;BR /&gt;
        Catch ex As System.Exception&lt;BR /&gt;
            ed.WriteMessage("Error Creating Palette: " + ex.Message)&lt;BR /&gt;
        End Try&lt;BR /&gt;
&lt;BR /&gt;
I hope you can see something I cant.</description>
      <pubDate>Thu, 24 Apr 2008 18:18:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189780#M75432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-24T18:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189781#M75433</link>
      <description>You probably shouln't let the head programmer see this thread.&lt;BR /&gt;
&lt;BR /&gt;
PaletteSetStyles is a set of flags.  &lt;BR /&gt;
&lt;BR /&gt;
I'll have to assume that you're not familiar with flags and bitwise operatons or how to work with them.&lt;BR /&gt;
&lt;BR /&gt;
The probelm you have is that you are assigning individual flags to the property, when you should be combining them, like this:&lt;BR /&gt;
&lt;BR /&gt;
    ps.Style = ps.Style Or PaletteSetStyles.ShowTabForSingle&lt;BR /&gt;
    ps.Style = ps.Style Or PaletteSetStyles.ShowCloseButton;&lt;BR /&gt;
    ps.Style = ps.Style Or PaletteSetStyles.ShowAutoHideButton;&lt;BR /&gt;
&lt;BR /&gt;
The "Or" operator combines the existing flags set in the style property, with the one you pass as the operand.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARTISTEROI&gt; wrote in message news:5914319@discussion.autodesk.com...&lt;BR /&gt;
Tony I got permission to post this:&lt;BR /&gt;
&lt;BR /&gt;
        Dim ed As Editor = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
        Try&lt;BR /&gt;
&lt;BR /&gt;
            If ps Is Nothing Then&lt;BR /&gt;
                Dim myForm As ModelessForm = New ModelessForm()&lt;BR /&gt;
                ps = New Autodesk.AutoCAD.Windows.PaletteSet("MYPALLETTE")&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowTabForSingle&lt;BR /&gt;
'Wouldn't this statement show the "X" on the Palette:&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowCloseButton&lt;BR /&gt;
                ps.Style = PaletteSetStyles.ShowAutoHideButton&lt;BR /&gt;
&lt;BR /&gt;
                ps.MinimumSize = New System.Drawing.Size(300, 500)&lt;BR /&gt;
                ps.Opacity = 65&lt;BR /&gt;
                ps.Add("Search Catalog", myForm)&lt;BR /&gt;
&lt;BR /&gt;
                ps.Visible = True&lt;BR /&gt;
                ps.Dock = DockSides.Left&lt;BR /&gt;
            End If&lt;BR /&gt;
        Catch ex As System.Exception&lt;BR /&gt;
            ed.WriteMessage("Error Creating Palette: " + ex.Message)&lt;BR /&gt;
        End Try&lt;BR /&gt;
&lt;BR /&gt;
I hope you can see something I cant.&lt;/ARTISTEROI&gt;</description>
      <pubDate>Fri, 25 Apr 2008 01:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189781#M75433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-25T01:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton</title>
      <link>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189782#M75434</link>
      <description>Tony,&lt;BR /&gt;
That worked just great. We can now hide our pallettes. &lt;BR /&gt;
Had to modify it slightly to get it to re-appear after the command call. But you solved a big problem for us. Thanks a million.</description>
      <pubDate>Fri, 25 Apr 2008 13:44:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autodesk-autocad-windows-palettesetstyles-showclosebutton/m-p/2189782#M75434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-25T13:44:04Z</dc:date>
    </item>
  </channel>
</rss>

