-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Feature Request]: KryptonColorButton Modify Recent Colors #385
Comments
Hi @sdreb3421 Had a look, I think you need to use |
I have modified the example to show how to do this: private int[] customColors;
private void ButtonShowFontDialog_Click(object sender, EventArgs e)
{
var kfd = new KryptonColorDialog {
AllowFullOpen = chkAllowFullOpen.Checked,
ShowHelp = chkShowHelp.Checked,
AnyColor = chkAnyColor.Checked,
FullOpen = chkFullOPen.Checked,
SolidColorOnly = chkSolidColorOnly.Checked,
CustomColors = customColors
};
if (kfd.ShowDialog(this) == DialogResult.OK)
{
KryptonMessageBox.Show(this, kfd.Color.ToString(), @"Color chosen is");
customColors = kfd.CustomColors;
}
} |
oops, My mistake thought it was do with the Common control. |
From inside the private void OnClickMoreColors(object sender, EventArgs e)
{
// Give user a chance to cancel showing the Krypton more colors dialog
CancelEventArgs cea = new();
OnMoreColors(cea);
// If not instructed to cancel then...
if (!cea.Cancel)
{
// Use a Krypton color dialog for the selection of custom colors
KryptonColorDialog cd = new()
{
Color = SelectedColor,
FullOpen = _allowFullOpen
};
// Only if user selected a value do we want to use it
if (cd.ShowDialog() == DialogResult.OK)
{
SelectedColor = cd.Color;
}
}
} |
Could the KCD have an optional feature to add colours to the |
I think the KCD should take the colours from the recent colours list. |
Current behavior:
|
Similar to #776 |
@sdreb3421 I know this is "old" but I'm a little confused (See below):
Ok, this is what this FR is about
Do you mean __KCD__ialog, or just miss-typed and you mean __KCB__utton?
Do you mean __KCB__utton? |
- Catch up with Demo items [#385Krypton-Suite/Standard-Toolkit#385
Please re-test using build >= .338 |
Hi @sdreb3421 Is this working now? |
Yes thank you |
Currently there is no way to modify the recent colors of a KryptonColorButton. Recommend adding the ability to modify recent colors at runtime and also potentially in the designer.
The text was updated successfully, but these errors were encountered: