<?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: StatusBar Panes in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475388#M83463</link>
    <description>Thanks for the reply.&lt;BR /&gt;
&lt;BR /&gt;
Catching the click is not a problem...I am already doing that, however, &lt;BR /&gt;
displaying the menu is eluding me.&lt;BR /&gt;
&lt;BR /&gt;
I created a context menu in code, then when I try to use the show method of &lt;BR /&gt;
the context menu, it wants a CONTROL object as one of arguments (the control &lt;BR /&gt;
that owns the menu) and I can't see how to tie this back to the pane I &lt;BR /&gt;
added.......&lt;BR /&gt;
&lt;BR /&gt;
Any other suggestions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;COUGERAC&gt; wrote in message news:5005503@discussion.autodesk.com...&lt;BR /&gt;
Glenn,&lt;BR /&gt;
The documentation appears to be incorrect.&lt;BR /&gt;
From the AutoCAD Managed Class Reference:&lt;BR /&gt;
"MaximumWidth (Read/write)&lt;BR /&gt;
Type&lt;BR /&gt;
System.Int32&lt;BR /&gt;
&lt;BR /&gt;
AcPane::DisplayPopupPaneMenu "&lt;BR /&gt;
"virtual UINT&lt;BR /&gt;
&lt;BR /&gt;
DisplayPopupPaneMenu(CMenu&amp;amp; menu);&lt;BR /&gt;
&lt;BR /&gt;
menu Input menu object representing the context menu that will be displayed&lt;BR /&gt;
&lt;BR /&gt;
This function displays a context menu above the pane. The context menu is &lt;BR /&gt;
aligned with the upper-left edge of the pane instead of being displayed &lt;BR /&gt;
where the user has clicked on the pane. This function should be used when &lt;BR /&gt;
displaying context menus for ACSB_POPUP style panes.&lt;BR /&gt;
&lt;BR /&gt;
Returns an unsigned integer representing the ID of the menu item the user &lt;BR /&gt;
selected, or 0 if no menu item was selected&lt;BR /&gt;
"&lt;BR /&gt;
In .NET "Public Property MaximumWidth() As Integer", so i believe that this &lt;BR /&gt;
won't work.&lt;BR /&gt;
But the 'Pane' class inherits from the 'StatusBarItem' class which exposes &lt;BR /&gt;
the event 'Public Event MouseDown(ByVal sender As Object, ByVal e As &lt;BR /&gt;
Autodesk.AutoCAD.Windows.StatusBarMouseDownEventArgs)'. I believe that you &lt;BR /&gt;
could use this event to catch the click then display your context menu.&lt;BR /&gt;
&lt;BR /&gt;
Good Luck,&lt;BR /&gt;
CG&lt;/COUGERAC&gt;</description>
    <pubDate>Tue, 08 Nov 2005 04:51:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-11-08T04:51:15Z</dc:date>
    <item>
      <title>StatusBar Panes</title>
      <link>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475386#M83461</link>
      <description>Hey everyone,&lt;BR /&gt;
&lt;BR /&gt;
I'm adding in a Pane to the Application statusbar and everything is good.&lt;BR /&gt;
&lt;BR /&gt;
I then tried looking for some method/function call to display a context menu &lt;BR /&gt;
when my pane is right clicked.&lt;BR /&gt;
In ARX I would have called DisplayPopupPaneMenu off a pointer to the &lt;BR /&gt;
statusbar. I might be being particularly blind today,&lt;BR /&gt;
but try as I might, I cannot find anything similar in the managed &lt;BR /&gt;
wrappers...except for a reference in the Managed Function to ARX Map in the &lt;BR /&gt;
help. The funny thing is, this supposedly wraps MaximumWidth which takes an &lt;BR /&gt;
Int...obviously cleverly disguised.&lt;BR /&gt;
&lt;BR /&gt;
So has anybody got a context menu to work for a pane click event and would &lt;BR /&gt;
care to share?&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Glenn.</description>
      <pubDate>Wed, 02 Nov 2005 09:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475386#M83461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-02T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: StatusBar Panes</title>
      <link>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475387#M83462</link>
      <description>Glenn,&lt;BR /&gt;
The documentation appears to be incorrect.&lt;BR /&gt;
From the AutoCAD Managed Class Reference:&lt;BR /&gt;
"MaximumWidth (Read/write) &lt;BR /&gt;
Type&lt;BR /&gt;
System.Int32&lt;BR /&gt;
&lt;BR /&gt;
AcPane::DisplayPopupPaneMenu "&lt;BR /&gt;
"virtual UINT&lt;BR /&gt;
&lt;BR /&gt;
DisplayPopupPaneMenu(CMenu&amp;amp; menu);&lt;BR /&gt;
&lt;BR /&gt;
menu Input menu object representing the context menu that will be displayed &lt;BR /&gt;
&lt;BR /&gt;
This function displays a context menu above the pane. The context menu is aligned with the upper-left edge of the pane instead of being displayed where the user has clicked on the pane. This function should be used when displaying context menus for ACSB_POPUP style panes.&lt;BR /&gt;
&lt;BR /&gt;
Returns an unsigned integer representing the ID of the menu item the user selected, or 0 if no menu item was selected&lt;BR /&gt;
"&lt;BR /&gt;
In .NET "Public Property MaximumWidth() As Integer", so i believe that this won't work.&lt;BR /&gt;
But the 'Pane' class inherits from the 'StatusBarItem' class which exposes the event 'Public Event MouseDown(ByVal sender As Object, ByVal e As Autodesk.AutoCAD.Windows.StatusBarMouseDownEventArgs)'. I believe that you could use this event to catch the click then display your context menu.&lt;BR /&gt;
&lt;BR /&gt;
Good Luck,&lt;BR /&gt;
CG</description>
      <pubDate>Mon, 07 Nov 2005 14:23:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475387#M83462</guid>
      <dc:creator>cgay</dc:creator>
      <dc:date>2005-11-07T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: StatusBar Panes</title>
      <link>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475388#M83463</link>
      <description>Thanks for the reply.&lt;BR /&gt;
&lt;BR /&gt;
Catching the click is not a problem...I am already doing that, however, &lt;BR /&gt;
displaying the menu is eluding me.&lt;BR /&gt;
&lt;BR /&gt;
I created a context menu in code, then when I try to use the show method of &lt;BR /&gt;
the context menu, it wants a CONTROL object as one of arguments (the control &lt;BR /&gt;
that owns the menu) and I can't see how to tie this back to the pane I &lt;BR /&gt;
added.......&lt;BR /&gt;
&lt;BR /&gt;
Any other suggestions?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;COUGERAC&gt; wrote in message news:5005503@discussion.autodesk.com...&lt;BR /&gt;
Glenn,&lt;BR /&gt;
The documentation appears to be incorrect.&lt;BR /&gt;
From the AutoCAD Managed Class Reference:&lt;BR /&gt;
"MaximumWidth (Read/write)&lt;BR /&gt;
Type&lt;BR /&gt;
System.Int32&lt;BR /&gt;
&lt;BR /&gt;
AcPane::DisplayPopupPaneMenu "&lt;BR /&gt;
"virtual UINT&lt;BR /&gt;
&lt;BR /&gt;
DisplayPopupPaneMenu(CMenu&amp;amp; menu);&lt;BR /&gt;
&lt;BR /&gt;
menu Input menu object representing the context menu that will be displayed&lt;BR /&gt;
&lt;BR /&gt;
This function displays a context menu above the pane. The context menu is &lt;BR /&gt;
aligned with the upper-left edge of the pane instead of being displayed &lt;BR /&gt;
where the user has clicked on the pane. This function should be used when &lt;BR /&gt;
displaying context menus for ACSB_POPUP style panes.&lt;BR /&gt;
&lt;BR /&gt;
Returns an unsigned integer representing the ID of the menu item the user &lt;BR /&gt;
selected, or 0 if no menu item was selected&lt;BR /&gt;
"&lt;BR /&gt;
In .NET "Public Property MaximumWidth() As Integer", so i believe that this &lt;BR /&gt;
won't work.&lt;BR /&gt;
But the 'Pane' class inherits from the 'StatusBarItem' class which exposes &lt;BR /&gt;
the event 'Public Event MouseDown(ByVal sender As Object, ByVal e As &lt;BR /&gt;
Autodesk.AutoCAD.Windows.StatusBarMouseDownEventArgs)'. I believe that you &lt;BR /&gt;
could use this event to catch the click then display your context menu.&lt;BR /&gt;
&lt;BR /&gt;
Good Luck,&lt;BR /&gt;
CG&lt;/COUGERAC&gt;</description>
      <pubDate>Tue, 08 Nov 2005 04:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/statusbar-panes/m-p/1475388#M83463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-08T04:51:15Z</dc:date>
    </item>
  </channel>
</rss>

