Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Create Scaled Drop Glyph and use for colour button and comboDrops #1892

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions Documents/Changelog/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

=======

## 2025-02-01 - Build 2502 (Version 90 - Patch 1) - February 2025
## 2025-02-01 - Build 2502 (Version 95 - Patch 1) - February 2025
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
- Create Scaled Drop Glyph and use for colour button and comboDrops
- Remove the `PaletteRedirectDropDownButton`
- Remove `KryptonPaletteImagesDropDownButton`
- **Breaking Change**: Remove `DropDownButtonImages` from designers
* Resolved [#1887](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1887), If `KryptonPropertyGrid` has focus on groupName and loses mouse over, then it is all filled in black
* Resolved [#1878](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1878), `KryptonListView` is missing key events
* Resolved [#1843](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1843), `ButtonSpec` position is off due to an incorrect padding when style is set to "List Item".
Expand Down Expand Up @@ -174,7 +179,26 @@

=======

# 2025-02-01 - Build 2502 (Patch 5) - February 2025
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
- Create Scaled Drop Glyph and use for colour button and comboDrops
- Remove the `PaletteRedirectDropDownButton`
- Remove `KryptonPaletteImagesDropDownButton`
- **Breaking Change**: Remove `DropDownButtonImages` from designers
* Resolved [#1842](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), `KryptonTextBox` height collapses when MultiLine is enabled.
* Resolved [#1399](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1399), Hard coded colour setting removed from the `KryptonRibbonTab`.

=======

# 2024-11-14 - Build 2411 (Patch 4) - November 2024
* Resolved [#1837](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1837), `KryptonMessageBoxDefaultButton.Button2` doesn't work
* Resolved [#1820](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1820), When KryptonDataGridView.AutoGenerate is set WinForms columns are used. See the issue for full text.

=======

# 2024-10-14 - Build 2410 (Patch 3) - October 2024
* Implemented [#1813](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1813), LTS Configuration
* Resolved [#1800](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1800) `KryptonDataGridViewComboBoxEditingControl.EditingControlFormattedValue` property is differently implemented.
* Implemented [#1792](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1792), Enable 'SourceLink' for NuGet packages
* Resolved [#66](https://github.com/Krypton-Suite/Standard-Toolkit/issues/66), Cannot Add Ribbon-Buttons-Container (KryptonRibbonGroupTripple) when using .netcore onwards [Returns error due to abstract class]
* Resolved [#297](https://github.com/Krypton-Suite/Standard-Toolkit/issues/297), Office 2k7 colour usages are wrong
Expand All @@ -183,7 +207,7 @@
=======

## 2024-08-26 - Build 2408 (Patch 2) - August 2024
* Resolved [#1697](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1697), `KryptonComboBox` change in DropDownStyle cripples the control while the control is disabled en reenabled again.
* Resolved [#1697](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1697), `KryptonComboBox` change in DropDownStyle cripples the control while the control is disabled when reenabled again.
* Resolved [#1755](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1755), Ribbon `GalleryButtonController` timer component causes an exception on mouse movements.
* Resolved [#1548](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1548), KComboBox DropDown arrow is illegible in certain themes
* Resolved [#1659](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1659), Solves `KryptonMessageBox` selected text issue, usage of diverse line breaks and sizing issues.
Expand Down Expand Up @@ -211,7 +235,7 @@
* Resolved [#1455](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1455), **[Regression]** KryptonComboBox text is clipped; as height is incorrect.
* Resolved [#1381](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1502), Docking Persistence broken since build `##.23.10.303`
* Resolved [#1508](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1508), **[Breaking Change]** ButtonSpec does not open assigned context menu when clicked.
- Added property `ShowDrop`, which displays a drop down arrow on the button.
- Added property `ShowDrop`, which displays a drop-down arrow on the button.
- When a `KryptonContextMenu` is connected the menu is shown when the button is clicked.
- When a WinForms `ContextMenuStrip` is connected the menu is shown when the button is clicked.
- When both type of the above ContextMenus are connected the `KryptonContextMenu` takes precedence.
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ Follow the links to see the different objects and layouts that this framework al

# Breaking Changes

## V95.00 (2025-02-01 - Build 2502 - February 2025)
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
- Create Scaled Drop Glyph and use for colour button and comboDrops
- Remove the `PaletteRedirectDropDownButton`
- Remove `KryptonPaletteImagesDropDownButton`
- **Breaking Change**: Remove `DropDownButtonImages` from designers

## V90.00 (2024-11-12 - Build 2411 - November 2024)
There are list of changes that have occurred during the development of the V90.00 version
- [#632](https://github.com/Krypton-Suite/Standard-Toolkit/issues/632), **[Breaking Change]** `KryptonPropertyGrid` should have a customisable back colour.
Expand Down Expand Up @@ -228,13 +235,20 @@ The `KryptonInputBox` now uses the new `KryptonInputBoxData` API, to handle data
### Building the Toolkit
As of V90.00 support for longer path names **will** need to be enabled if you want to build the toolkit yourself. For more details on how to do this, please follow the instructions [here](https://krypton-suite.github.io/Standard-Toolkit-Online-Help/Source/Help/Output/articles/Contributing/Allowing-for-Longer-Path-and-File-Names.html).

## V85.00 (2025-02-01 - Build 2502 (Patch 5) - February 2025)
* Resolved [#1212](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1842), **[Breaking Change]** `KColorButton` 'drop-down' arrow should be drawn
- Create Scaled Drop Glyph and use for colour button and comboDrops
- Remove the `PaletteRedirectDropDownButton`
- Remove `KryptonPaletteImagesDropDownButton`
- **Breaking Change**: Remove `DropDownButtonImages` from designers

## V85.00 (2024-06-24 - Build 2406 - June 2024)
There are a list of changes that have occurred during the development of the V85.00 version

* [#1302](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1302), **[Breaking Change]** Font being used by "Professional" theme is pants !
- The Option to use `SystemDefault` no longer exists a font rendering hint
* [#1508](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1508), **[Breaking Change]** ButtonSpec does not open assigned context menu when clicked.
- Added property `ShowDrop`, which displays a drop down arrow on the button.
- Added property `ShowDrop`, which displays a drop-down arrow on the button.
- When a `KryptonContextMenu` is connected the menu is shown when the button is clicked.
- When a WinForms `ContextMenuStrip` is connected the menu is shown when the button is clicked.
- When both type of the above ContextMenus are connected the `KryptonContextMenu` takes precedence.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class KryptonAutoHiddenSlidePanel : KryptonPanel,
/// Occurs when a page requests that a drop-down menu be shown.
/// </summary>
[Category("Behavior")]
[Description("Occurs when the user clicks the drop down button for a page.")]
[Description("Occurs when the user clicks the drop-down button for a page.")]
public event EventHandler<CancelDropDownEventArgs>? PageDropDownClicked;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public class KryptonDockableNavigator : KryptonNavigator
public event EventHandler<KryptonPageEventArgs>? CellPageInserting;

/// <summary>
/// Occurs when a page requests that a drop down menu be shown.
/// Occurs when a page requests that a drop-down menu be shown.
/// </summary>
[Category("DockableNavigator")]
[Description("Occurs when a page requests that a drop down menu be shown.")]
[Description("Occurs when a page requests that a drop-down menu be shown.")]
public event EventHandler<CancelDropDownEventArgs>? PageDropDownClicked;
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public KryptonDockableWorkspace()
protected override bool ApplyDockingPinAction => false;

/// <summary>
/// Gets a value indicating if docking specific drop down actions should be applied.
/// Gets a value indicating if docking specific drop-down actions should be applied.
/// </summary>
protected override bool ApplyDockingDropDownAction => false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected class CachedCellState
public ButtonSpecNavigator? PinButtonSpec { get; set; }

/// <summary>
/// Gets and sets the button spec used to represent a drop down button.
/// Gets and sets the button spec used to represent a drop-down button.
/// </summary>
public ButtonSpecNavigator? DropDownButtonSpec { get; set; }
}
Expand Down Expand Up @@ -110,10 +110,10 @@ protected class CachedCellState
public event EventHandler<UniqueNameEventArgs>? PageAutoHiddenClicked;

/// <summary>
/// Occurs when a page requests that a drop down menu be shown.
/// Occurs when a page requests that a drop-down menu be shown.
/// </summary>
[Category("DockableWorkspace")]
[Description("Occurs when a page drop down menu is requested from a header button.")]
[Description("Occurs when a page drop-down menu is requested from a header button.")]
public event EventHandler<CancelDropDownEventArgs>? PageDropDownClicked;

/// <summary>
Expand Down Expand Up @@ -204,10 +204,10 @@ public string PinTooltip
}

/// <summary>
/// Gets and sets the tooltips used for the drop down button.
/// Gets and sets the tooltips used for the drop-down button.
/// </summary>
[Category("Dockable")]
[Description("Tooltip for the drop down button.")]
[Description("Tooltip for the drop-down button.")]
[DefaultValue("Window Position")]
public string DropDownTooltip
{
Expand Down Expand Up @@ -343,7 +343,7 @@ public override void WritePageElement(XmlWriter xmlWriter, KryptonPage page)
protected virtual bool ApplyDockingPinAction => true;

/// <summary>
/// Gets a value indicating if docking specific drop down actions should be applied.
/// Gets a value indicating if docking specific drop-down actions should be applied.
/// </summary>
protected virtual bool ApplyDockingDropDownAction => true;

Expand Down Expand Up @@ -736,7 +736,7 @@ private void OnCellPrimaryHeaderRightClicked(object? sender, EventArgs e)
// Set the focus into the active page
cell.SelectedPage.SelectNextControl(cell.SelectedPage, true, true, true, false);

// Create and populate a context menu with the drop down set of options
// Create and populate a context menu with the drop-down set of options
var kcm = new KryptonContextMenu();
var args = new CancelDropDownEventArgs(kcm, cell.SelectedPage);
OnPageDropDownClicked(args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ public string TextTabbedDocument

#region TextWindowLocation
/// <summary>
/// Gets and sets the text to use for the drop down button tooltip.
/// Gets and sets the text to use for the drop-down button tooltip.
/// </summary>
[Category("Visuals")]
[Description("Text to use for the drop down button tooltip.")]
[Description("Text to use for the drop-down button tooltip.")]
[RefreshProperties(RefreshProperties.All)]
[DefaultValue("Window Position")]
[Localizable(true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class KryptonNavigator : VisualSimple,
/// Occurs when the context action occurs.
/// </summary>
[Category(@"Navigator")]
[Description(@"Occurs when the drop down button is clicked in Outlook mode.")]
[Description(@"Occurs when the drop-down button is clicked in Outlook mode.")]
public event EventHandler<KryptonContextMenuEventArgs>? OutlookDropDown;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public enum KryptonPageFlags
/// <summary>Specifies that the user is allowed to close a docking page.</summary>
DockingAllowClose = 0x0004,

/// <summary>Specifies that the user is allowed to select from a drop down button.</summary>
/// <summary>Specifies that the user is allowed to select from a drop-down button.</summary>
DockingAllowDropDown = 0x008,

/// <summary>Specifies that the user is allowed to make a page auto hidden.</summary>
Expand Down Expand Up @@ -501,7 +501,7 @@ public enum PaletteNavButtonSpecStyle
ArrowDown,

/// <summary>
/// Specifies a drop down button specification.
/// Specifies a drop-down button specification.
/// </summary>
DropDown,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ public InheritBool HeaderSecondaryVisible

#region ShowDropDownButton
/// <summary>
/// Gets and sets the visibility of the drop down button on the Outlook overflow bar.
/// Gets and sets the visibility of the drop-down button on the Outlook overflow bar.
/// </summary>
[Category(@"Visuals")]
[Description(@"Visibility of the drop down button on the Outlook overflow bar.")]
[Description(@"Visibility of the drop-down button on the Outlook overflow bar.")]
[RefreshProperties(RefreshProperties.All)]
[DefaultValue(true)]
public bool ShowDropDownButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ private void CreateButtonManager()
// Create a collection to hold button spec we want to display
_buttons = new OutlookButtonSpecCollection(Navigator);

// Create out drop down button specification
// Create out drop-down button specification
_specDropDown = new ButtonSpecAny
{
Type = PaletteButtonSpecStyle.DropDown,
Expand Down Expand Up @@ -1998,7 +1998,7 @@ private void ReorderCheckButtons()
Orientation buttonEdgeOrient = (stackOrient == Orientation.Vertical ? Orientation.Horizontal : Orientation.Vertical);
ViewDockStyle dockFar = (stackOrient == Orientation.Vertical ? ViewDockStyle.Bottom : ViewDockStyle.Right);

// Update the separator/drop down buttons with latest values
// Update the separator/drop-down buttons with latest values
_viewSeparatorEdge.Orientation = buttonEdgeOrient;
_viewSeparator.Orientation = buttonEdgeOrient;

Expand Down Expand Up @@ -2155,10 +2155,10 @@ private void OnDropDownClick(object? sender, EventArgs e)
addRemoveButtonItems.Items.Add(pageMenuItem);
}

// Only enable the 'Add/Remove' if it has at least one drop down item
// Only enable the 'Add/Remove' if it has at least one drop-down item
addRemoveButtons.Enabled = (visibleAddRemove > 0);

// Get the display rectangle of the drop down button
// Get the display rectangle of the drop-down button
Rectangle rect = _buttonManager!.GetButtonRectangle(_specDropDown);

// Convert to screen coordinates
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff a/Source/Krypton Components/Krypton.Navigator/View Builder/ViewBuilderOutlookBase.cs b/Source/Krypton Components/Krypton.Navigator/View Builder/ViewBuilderOutlookBase.cs (rejected hunks)
@@ -2138,10 +2138,10 @@ namespace Krypton.Navigator
addRemoveButtonItems.Items.Add(pageMenuItem);
}

- // Only enable the 'Add/Remove' if it has at least one drop-down item
+ // Only enable the 'Add/Remove' if it has at least one drop-down item
addRemoveButtons.Enabled = (visibleAddRemove > 0);

- // Get the display rectangle of the drop-down button
+ // Get the display rectangle of the drop-down button
Rectangle rect = _buttonManager.GetButtonRectangle(_specDropDown);

// Convert to screen coordinates
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void KeyTipSelect(KryptonRibbon ribbon)
// as this causes the tracking windows to be killed and we want them kept
ribbon.LostFocusLosesKeyboard = false;

// Get the target to show the drop down menu for the gallery
// Get the target to show the drop-down menu for the gallery
_target.KeyTipSelect();

// Exit the use of keyboard mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ internal class GroupButtonController : GlobalId,
public event MouseEventHandler? ContextClick;

/// <summary>
/// Occurs when a drop down portion is clicked.
/// Occurs when a drop-down portion is clicked.
/// </summary>
public event EventHandler? DropDown;
#endregion
Expand Down
Loading