.NET

Reply
Active Contributor
connieleo
Posts: 29
Registered: ‎04-14-2005
Message 1 of 8 (213 Views)

dock panel

213 Views, 7 Replies
11-10-2005 05:19 AM
Could anyone give me some example of dock panel by c#.net tools? I need see the codes. Thanks a lot.
*Bobby C. Jones
Message 2 of 8 (213 Views)

Re: dock panel

11-11-2005 10:47 AM in reply to: connieleo
using System;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Windows;

namespace AppPaneExample
{
public class ApplicationPanes
{
[CommandMethod("CreateAppPane")]
public static void AddApplicationPane()
{
Pane appPaneButton = new Pane();

appPaneButton .Enabled = true;
appPaneButton .Visible = true;
appPaneButton .Style = PaneStyles.Normal;
appPaneButton .Text = "Application Pane Button";
appPaneButton .ToolTipText = "This button is on the
application pane";

appPaneButton .MouseDown += new
StatusBarMouseDownEventHandler(OnMouseDown);


Autodesk.AutoCAD.ApplicationServices.Application.StatusBar.Panes.Add(appPane
Button);
}

private static void OnMouseDown(object sender,
StatusBarMouseDownEventArgs e)
{
Pane paneButton = (Pane) sender;

if (paneButton.Style == PaneStyles.PopOut)
{
paneButton.Style = PaneStyles.Normal;

Autodesk.AutoCAD.ApplicationServices.Application.StatusBar.Update();

Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("The pane
is activated.");
}
else
{
paneButton.Style = PaneStyles.PopOut;

Autodesk.AutoCAD.ApplicationServices.Application.StatusBar.Update();

Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("The pane
is de-activated.");
}
}
}
}

**WARNING** -- I ripped this out of some example code and modified it
slightly. It hasn't been tested.
--
Bobby C. Jones
http://www.acadx.com

wrote in message news:5009294@discussion.autodesk.com...
Could anyone give me some example of dock panel by c#.net tools? I need
see the codes. Thanks a lot.
Active Contributor
connieleo
Posts: 29
Registered: ‎04-14-2005
Message 3 of 8 (213 Views)

Re: dock panel

11-13-2005 04:18 AM in reply to: connieleo
Thanks. I create the .cs file and .dll file. It can't appear the dock panel. Could you help me to see it?
*Bobby C. Jones
Message 4 of 8 (213 Views)

Re: dock panel

11-14-2005 01:11 PM in reply to: connieleo
You must type "CreateAppPane" at the command line after loading the
assembly.
--
Bobby C. Jones
http://www.acadx.com

wrote in message news:5011745@discussion.autodesk.com...
Thanks. I create the .cs file and .dll file. It can't appear the dock panel
Could you help me to see it?
Active Contributor
connieleo
Posts: 29
Registered: ‎04-14-2005
Message 5 of 8 (213 Views)

Re: dock panel

11-14-2005 06:52 PM in reply to: connieleo
Thank you for your answer. I type CreateAppPane in the command line. But nothing appears. What about in your computer? Thanks a lot.
*Jorge Jimenez
Message 6 of 8 (213 Views)

Re: dock panel

11-14-2005 09:03 PM in reply to: connieleo
Are you looking at the status bar ? (at your screen's lower right corner)

--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


wrote in message news:5013483@discussion.autodesk.com...
Thank you for your answer. I type CreateAppPane in the command line. But
nothing appears. What about in your computer? Thanks a lot.
*Bobby C. Jones
Message 7 of 8 (213 Views)

Re: dock panel

11-15-2005 06:09 AM in reply to: connieleo
It shows on mine.
--
Bobby C. Jones
http://www.acadx.com

wrote in message news:5013483@discussion.autodesk.com...
Thank you for your answer. I type CreateAppPane in the command line. But
nothing appears. What about in your computer? Thanks a lot.
Active Contributor
connieleo
Posts: 29
Registered: ‎04-14-2005
Message 8 of 8 (213 Views)

Re: dock panel

11-16-2005 02:23 AM in reply to: connieleo
Thanks a lot. Very appreciated.

Another question. Could anyone have the simple sample to show the dialog just like Design Center dialog. The dialog can exit in AutoCAD when you run other program in the command. Thanks again

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community