Skip to content

Commit

Permalink
- Update Example to reflect usage of Alpha Slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Smurf-IV committed Aug 5, 2023
1 parent 6071dde commit 0e88531
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 605 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class KryptonButtonProxy

[Category("Visuals")]
[Description("Button style.")]
[DefaultValue(typeof(ButtonStyle), "Standalone")]
[DefaultValue(typeof(ButtonStyle), ButtonStyleStrings.DEFAULT_BUTTON_SPEC_STYLE_STANDALONE)]
public ButtonStyle ButtonStyle
{
get => _button.ButtonStyle;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Globalization;
using System.Windows.Forms;

using Krypton.Toolkit;
Expand Down Expand Up @@ -41,13 +42,24 @@ private void ButtonShowFontDialog_Click(object sender, EventArgs e)
CustomColors = customColors,
Title = @"Test Colour Dialog being set",
ShowIcon = chkShowIcon.Checked,
//Icon = Icon
//Icon = Icon,
ShowAlphaSlider = chkShowAlphaSlider.Checked
};
if (kfd.ShowDialog(this) == DialogResult.OK)
{
KryptonMessageBox.Show(this, kfd.Color.ToString(), @"Color chosen is");
customColors = kfd.CustomColors;
}
}

private void kryptonTrackBar1_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
}

private void kryptonTrackBar1_ValueChanged(object sender, EventArgs e)
{
kryptonLabel1.Text = kryptonTrackBar1.Value.ToString(CultureInfo.InvariantCulture);
//kryptonTrackBar1.ToolTipManager
}
}
}
Loading

0 comments on commit 0e88531

Please sign in to comment.