Skip to content

Commit 997337a

Browse files
authored
Merge pull request #3 from ricaun-io/develop
Version 0.3.0
2 parents 180594d + 5b912cb commit 997337a

File tree

7 files changed

+275
-29
lines changed

7 files changed

+275
-29
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.3.0] / 2025-07-15
8+
### Features
9+
- Support `CreateSplitButton` extension.
10+
- Support `CreatePulldownButton` extension.
11+
- Support `CreatePanel` extension.
12+
### UI
13+
- Update `RibbonExtension` to support `CreateSplitButton` and `CreatePulldownButton`.
14+
- Update `MessageBox.ShowMessage` to close window using `Key.Escape`.
15+
- Add `SetListImageSize` to set the image size for `RibbonListButton`.
16+
- Update `CreatePanel` and `CreateOrSelectPanel` to use `TabName` and `PanelName` parameters.
17+
### Example
18+
- Add `CreateSplitButton` and `CreatePulldownButton` to the example project.
19+
720
## [0.2.0] / 2025-07-04
821
### Features
922
- Add `ricaun.AutoCAD.UI.Example` sample project.
@@ -33,5 +46,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3346
- Add `Busy`, `Runtime`, `Tasks`, and `Windows` utilities.
3447

3548
[vNext]: ../../compare/1.0.0...HEAD
49+
[0.3.0]: ../../compare/0.2.0...0.3.0
3650
[0.2.0]: ../../compare/0.1.0...0.2.0
3751
[0.1.0]: ../../compare/0.1.0

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.2.0</Version>
3+
<Version>0.3.0</Version>
44
</PropertyGroup>
55
</Project>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ public class MyExtensionApp : ExtensionApplication
2727
{
2828
public override void OnStartup(RibbonControl ribbonControl)
2929
{
30-
ribbonControl.CreateOrSelectPanel("MyPanel", "MyTab")
30+
ribbonControl.CreatePanel("MyPanel");
3131
}
3232

3333
public override void OnShutdown(RibbonControl ribbonControl)
3434
{
35-
ribbonControl.RemovePanel("MyPanel", "MyTab");
35+
ribbonControl.RemovePanel("MyPanel");
3636
}
3737
}
3838
```

ricaun.AutoCAD.UI.Example/App.cs

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class App : ExtensionApplication
2020

2121
public override void OnStartup(RibbonControl ribbonControl)
2222
{
23-
var ribbonPanel = ribbonControl.CreateOrSelectPanel(PanelName, TabName);
23+
var ribbonPanel = ribbonControl.CreateOrSelectPanel(TabName, PanelName);
2424

2525
ribbonPanel.RowLargeStackedItems(
2626
ribbonPanel.CreateButton("Theme")
@@ -88,11 +88,39 @@ await autoCADTask.Run(() =>
8888
.SetCommand(() => { paletteSet?.ToggleVisible(); })
8989
.SetLargeImage("Resources/Cube-Grey-Light.tiff");
9090

91+
ribbonPanel.AddSeparator();
92+
93+
ribbonPanel.CreateSplitButton("Split",
94+
ribbonPanel.CreateButton("Grey")
95+
.SetCommand(e=>Windows.MessageBox.ShowMessage(e.Text))
96+
.SetLargeImage("Resources/Cube-Grey-Light.tiff"),
97+
ribbonPanel.CreateButton("Red")
98+
.SetCommand(e => Windows.MessageBox.ShowMessage(e.Text))
99+
.SetLargeImage("Resources/Cube-Red-Light.tiff"),
100+
ribbonPanel.CreateButton("Green")
101+
.SetCommand(e => Windows.MessageBox.ShowMessage(e.Text))
102+
.SetLargeImage("Resources/Cube-Green-Light.tiff")
103+
);
104+
105+
ribbonPanel.CreatePulldownButton("Pulldown",
106+
ribbonPanel.CreateButton("Grey")
107+
.SetCommand(e => Windows.MessageBox.ShowMessage(e.Text))
108+
.SetLargeImage("Resources/Cube-Grey-Light.tiff"),
109+
ribbonPanel.CreateButton("Red")
110+
.SetCommand(e => Windows.MessageBox.ShowMessage(e.Text))
111+
.SetLargeImage("Resources/Cube-Red-Light.tiff"),
112+
ribbonPanel.CreateButton("Green")
113+
.SetCommand(e => Windows.MessageBox.ShowMessage(e.Text))
114+
.SetLargeImage("Resources/Cube-Green-Light.tiff")
115+
)
116+
.SetLargeImage("Resources/Cube-Green-Light.tiff")
117+
.SetDescription("This is a PulldownButton");
118+
91119
ribbonControl.ActiveTab = ribbonPanel.Tab;
92120
}
93121
public override void OnShutdown(RibbonControl ribbonControl)
94122
{
95-
ribbonControl.RemovePanel(PanelName, TabName);
123+
ribbonControl.RemovePanel(TabName, PanelName);
96124
}
97125

98126
private RibbonButton ribbonButtonBusy;

ricaun.AutoCAD.UI.Example/PackageContents.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="AutoCAD" Name="ricaun.AutoCAD.UI.Example" AppVersion="1.0.0" ProductType="Application" >
2+
<ApplicationPackage SchemaVersion="1.0" AutodeskProduct="AutoCAD" Name="ricaun.AutoCAD.UI.Example" AppVersion="0.0.0" ProductType="Application" >
33
<CompanyDetails Name="ricaun" />
44
<Components Description="AutoCAD 2021-2024">
55
<RuntimeRequirements OS="Win64" Platform="AutoCAD*" SeriesMin="R24.0" SeriesMax="R24.9"/>

0 commit comments

Comments
 (0)