Skip to content

Commit 97092c1

Browse files
committed
Merge branch 'release/v24.1.1' into main
2 parents 7aa2218 + 059e703 commit 97092c1

File tree

14 files changed

+210
-16
lines changed

14 files changed

+210
-16
lines changed

Documentation/topics/conversion/converting-to-v24-1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The [UIColor](xref:@ActiproUIRoot.Drawing.UIColor) class has been updated with a
159159

160160
## Previously Deprecated Items Removed
161161

162-
The following members were deprecated in previous releases have been removed in this release.
162+
The following members were deprecated in previous releases and have been removed in this release.
163163

164-
- (Docking) [AssemblyInfo](xref:ActiproSoftware.Products.Docking.AssemblyInfo).`GetImage` method that did not accept a scale factor was removed. Use the [GetImage](xref:ActiproSoftware.Products.Docking.AssemblyInfo.GetImage*) method that accepts a scale factor.
164+
- (Docking) `AssemblyInfo.GetImage` method that did not accept a scale factor was removed. Use the `GetImage` method that accepts a scale factor instead.
165165
- (SyntaxEditor) [IntelliPromptSessionTypes](xref:@ActiproUIRoot.Controls.SyntaxEditor.IntelliPrompt.IntelliPromptSessionTypes).`CodeSnippet` was removed. Use the [CodeSnippetTemplate](xref:@ActiproUIRoot.Controls.SyntaxEditor.IntelliPrompt.IntelliPromptSessionTypes.CodeSnippetTemplate) property instead.

Documentation/topics/licensing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The contents of a *licenses.licx* file are pretty simple. It needs a single lin
152152
This single line (update the version to match the one you use) should be added to the *licenses.licx* file in any project that uses Actipro @@PlatformName control or SyntaxEditor add-on products:
153153

154154
```
155-
ActiproSoftware.Products.ActiproLicenseToken, ActiproSoftware.Shared.WinForms, Version=24.1.0.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763
155+
ActiproSoftware.Products.ActiproLicenseToken, ActiproSoftware.Shared.WinForms, Version=24.1.1.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763
156156
```
157157

158158
> [!IMPORTANT]

Documentation/topics/recent-updates.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ WinForms Studio's documentation has frequent updates, so this topic is the best
99

1010
If you are looking for a list of recently-added major new features to WinForms Studio products, please see the **Sample Browser**'s Release History pages instead.
1111

12+
## Updates for v24.1.1
13+
14+
- **SyntaxEditor:** Removed "Control Key Down Opacity" from [Overlay Panes](syntaxeditor/user-interface/editor-view/overlay-panes.md) topic since the WinForms platform does not support that feature.
15+
1216
## Updates for v24.1.0
1317

1418
- **All:** Added [Troubleshooting (General)](troubleshooting.md) topic.

Documentation/topics/syntaxeditor/user-interface/editor-view/overlay-panes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ To prevent these keys (or any other key combination) from reaching the `SyntaxEd
4848
4949
}
5050

51+
@if (wpf) {
52+
5153
## Control Key Down Opacity
5254

5355
Overlay panes can become semi-transparent when the <kbd>Ctrl</kbd> key is held down, thereby allowing the end user to see the text behind it. The [IOverlayPane](xref:@ActiproUIRoot.Controls.SyntaxEditor.IOverlayPane).[ControlKeyDownOpacity](xref:@ActiproUIRoot.Controls.SyntaxEditor.IOverlayPane.ControlKeyDownOpacity) property specifies the opacity when the popup is semi-transparent.
5456

5557
The property value `0.25` is recommended for transparency. Set this property to `1.0` to prevent the pane from becoming semi-transparent.
5658

59+
}
60+
5761
## Single or Multiple Views
5862

5963
The [IOverlayPane](xref:@ActiproUIRoot.Controls.SyntaxEditor.IOverlayPane).[InstanceKind](xref:@ActiproUIRoot.Controls.SyntaxEditor.IOverlayPane.InstanceKind) property specifies how many instances of the overlay pane are permitted across all views of the same `SyntaxEditor` control.

Documentation/topics/syntaxeditor/user-interface/searching/search-overlay-pane.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,16 @@ The [SyntaxEditor](xref:@ActiproUIRoot.Controls.SyntaxEditor.SyntaxEditor).[View
122122

123123
Search results can be highlighted as the find text and other search options are altered in the search overlay pane. For this functionality to work, please make sure the appropriate display classification type is registered per the requirements listed in the [Search Result Highlighting](search-result-highlighting.md) topic.
124124

125+
@if (wpf) {
126+
125127
## Control Key Down Opacity
126128

127129
The search overlay pane animates to be semi-transparent when the <kbd>Ctrl</kbd> key is held down, thereby allowing the end user to see the text behind it. [SearchOverlayPane](xref:@ActiproUIRoot.Controls.SyntaxEditor.Primitives.SearchOverlayPane).[ControlKeyDownOpacity](xref:@ActiproUIRoot.Controls.SyntaxEditor.Primitives.SearchOverlayPane.ControlKeyDownOpacity) property specifies the opacity when the popup is semi-transparent.
128130

129131
Set this property to `1.0` to prevent the pane from being semi-transparent.
130132

133+
}
134+
131135
## Programmatically Opening the Pane
132136

133137
This code shows how to programmatically the pane:

Documentation/topics/visual-studio-designer.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,27 @@ The following outlines the compatibility of Actipro WinForms Controls with versi
3939
<tbody>
4040

4141
<tr>
42-
<td>WinForms Controls v23.1</td>
42+
<td>WinForms Controls v24.1</td>
4343
<td>
4444

45-
- Visual Studio 2022 v17.0-17.6
45+
- Visual Studio 2022 v17.0-17.11
4646
- Visual Studio 2019 v16.10-16.11
4747
- *Minor updates to v16 and v17 are expected to be supported and will be verified as they are released*
4848

4949
</td>
5050
</tr>
5151

52+
<tr>
53+
<td>WinForms Controls v23.1</td>
54+
<td>
55+
56+
- Visual Studio 2022 v17.0-17.8
57+
- Visual Studio 2019 v16.10-16.11
58+
- *Minor updates to v16 and v17 are expected to be supported, but are no longer verified on older control releases*
59+
60+
</td>
61+
</tr>
62+
5263
<tr>
5364
<td>WinForms Controls v22.1</td>
5465
<td>

Samples/SampleBrowser/ActiproSoftware.References.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
https://www.actiprosoftware.com/docs/controls/winforms/nuget
99
-->
1010
<PropertyGroup>
11-
<ActiproVersion>24.1.0</ActiproVersion>
11+
<ActiproVersion>24.1.1</ActiproVersion>
1212
</PropertyGroup>
1313

1414
<ItemGroup>

Samples/SampleBrowser/ProductSamples/SyntaxEditorSamples/Demo/SdiCodeEditor/MainControl.Designer.cs

Lines changed: 109 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples/SampleBrowser/ProductSamples/SyntaxEditorSamples/Demo/SdiCodeEditor/MainControl.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ namespace ActiproSoftware.ProductSamples.SyntaxEditorSamples.Demo.SdiCodeEditor
3434
/// </summary>
3535
public partial class MainControl : UserControl, IProductSample {
3636

37+
private float defaultFontSize;
38+
private int defaultIndicatorMarginWidth;
3739
private bool hasPendingParseData;
3840

3941
// Project assemblies used by C#/VB in the .NET Languages Add-on
@@ -50,6 +52,11 @@ public partial class MainControl : UserControl, IProductSample {
5052
public MainControl() {
5153
InitializeComponent();
5254

55+
// Cache the default font size and indicator margin width that can be used to auto-scale the indicator margin
56+
// as the font size changes.
57+
defaultFontSize = editor.Font.Size;
58+
defaultIndicatorMarginWidth = editor.IndicatorMarginWidth;
59+
5360
// Finalize initialization
5461
DpiHelper.RescaleListViewColumns(errorListView, DpiHelper.DefaultDeviceDpi, DpiHelper.GetSystemDeviceDpi());
5562

@@ -320,9 +327,21 @@ private void OnErrorListViewMouseDoubleClick(object sender, MouseEventArgs e) {
320327
/// <param name="sender">The sender of the event.</param>
321328
/// <param name="e">The <see cref="EventArgs"/> that contains the event data.</param>
322329
private void OnFontSizeToolStripMenuItemDropDownOpening(object sender, EventArgs e) {
330+
fontSize6ToolStripMenuItem.Checked = (editor.Font.Size == 6);
331+
fontSize8ToolStripMenuItem.Checked = (editor.Font.Size == 8);
323332
fontSize10ToolStripMenuItem.Checked = (editor.Font.Size == 10);
333+
fontSize12ToolStripMenuItem.Checked = (editor.Font.Size == 12);
324334
fontSize14ToolStripMenuItem.Checked = (editor.Font.Size == 14);
335+
fontSize16ToolStripMenuItem.Checked = (editor.Font.Size == 16);
325336
fontSize18ToolStripMenuItem.Checked = (editor.Font.Size == 18);
337+
fontSize20ToolStripMenuItem.Checked = (editor.Font.Size == 20);
338+
fontSize22ToolStripMenuItem.Checked = (editor.Font.Size == 22);
339+
fontSize24ToolStripMenuItem.Checked = (editor.Font.Size == 24);
340+
fontSize26ToolStripMenuItem.Checked = (editor.Font.Size == 26);
341+
fontSize28ToolStripMenuItem.Checked = (editor.Font.Size == 28);
342+
fontSize36ToolStripMenuItem.Checked = (editor.Font.Size == 36);
343+
fontSize48ToolStripMenuItem.Checked = (editor.Font.Size == 48);
344+
fontSize72ToolStripMenuItem.Checked = (editor.Font.Size == 72);
326345
}
327346

328347
/// <summary>
@@ -332,6 +351,10 @@ private void OnFontSizeToolStripMenuItemDropDownOpening(object sender, EventArgs
332351
/// <param name="e">A <see cref="EventArgs"/> that contains the event data.</param>
333352
private void OnFontSizeToolStripMenuItemDropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) {
334353
editor.Font = new Font(editor.Font.FontFamily, int.Parse(e.ClickedItem.Text));
354+
355+
// Scale the indicator margin width based on the size of the font
356+
var fontScale = editor.Font.Size / defaultFontSize;
357+
editor.IndicatorMarginWidth = (int)Math.Round(defaultIndicatorMarginWidth * fontScale, MidpointRounding.AwayFromZero);
335358
}
336359

337360
/// <summary>

Samples/SampleBrowser/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
//
3030
// You can specify all the values or you can default the Build and Revision Numbers
3131
// by using the '*' as shown below:
32-
[assembly: AssemblyVersion("24.1.0.0")]
33-
[assembly: AssemblyInformationalVersion("24.1.0.0 - 20240206")]
32+
[assembly: AssemblyVersion("24.1.1.0")]
33+
[assembly: AssemblyInformationalVersion("24.1.1.0 - 20240223")]

0 commit comments

Comments
 (0)