The example demonstrates various appearance-related properties of the scale bar.

| Language: C# |
using Nevron.Nov;
using Nevron.Nov.Chart;
using Nevron.Nov.Dom;
using Nevron.Nov.Editors;
using Nevron.Nov.Graphics;
using Nevron.Nov.Layout;
using Nevron.Nov.UI;
using Nevron.Nov.Windows.Forms;
using System.Windows.Forms;
namespace NovWinFormsProject
{
public partial class Form1 : Form
{
#region Constructors
public Form1()
{
InitializeComponent();
// Set form title
Text = "NOV WinForms - NScalesAppearanceExample";
// Create the NOV example and its controls
NWidget exampleContent = CreateExampleContent();
NWidget exampleControls = CreateExampleControls();
if (exampleControls != null)
{
exampleControls.PreferredWidth = 300;
}
// Place the example and its controls in a pair box
NPairBox pairBox = new NPairBox(exampleContent, exampleControls);
pairBox.FillMode = ENStackFillMode.First;
pairBox.FitMode = ENStackFitMode.First;
pairBox.Margins = new NMargins(NDesign.HorizontalSpacing, NDesign.VerticalSpacing);
// Host the example in the form
NNovWidgetHost host = new NNovWidgetHost(pairBox);
host.Dock = DockStyle.Fill;
Controls.Add(host);
}
#endregion
#region Example
public NWidget CreateExampleContent()
{
NStackPanel stack = new NStackPanel();
NStackPanel controlStack = new NStackPanel();
controlStack.Direction = ENHVDirection.LeftToRight;
stack.Add(controlStack);
// create the radial gauge
m_RadialGauge = new NRadialGauge();
m_RadialGauge.Dial = new NDial(ENDialShape.Circle, new NEdgeDialRim());
m_RadialGauge.PreferredSize = defaultRadialGaugeSize;
m_RadialGauge.SweepAngle = new NAngle(280, NUnit.Degree);
m_RadialGauge.BeginAngle = new NAngle(120, NUnit.Degree);
controlStack.Add(m_RadialGauge);
m_RadialGauge.SweepAngle = new NAngle(310, NUnit.Degree);
m_RadialGauge.BeginAngle = new NAngle(-240, NUnit.Degree);
// configure the axis
NGaugeAxis axis = new NGaugeAxis();
axis.Anchor.ScaleOrientation = ENScaleOrientation.Right;
axis.Range = new NRange(0, 100);
axis.Anchor = new NDockGaugeAxisAnchor(ENGaugeAxisDockZone.Top, true, ENScaleOrientation.Right, 0.0f, 100.0f);
m_RadialGauge.Axes.Add(axis);
// create scale
m_Scale = (NStandardScale)axis.Scale;
m_Scale.SetPredefinedScale(ENPredefinedScaleStyle.PresentationNoStroke);
m_Scale.Labels.OverlapResolveLayouts = new NDomArray();
m_Scale.MinorTickCount = 3;
m_Scale.Ruler.Fill = new NColorFill(NColor.FromColor(NColor.Transparent, 0.4f));
m_Scale.OuterMajorTicks.Fill = new NColorFill(NColor.Black);
m_Scale.Labels.Style.TextStyle.Font = new NFont("Arimo", 12, ENFontStyle.Bold);
m_Scale.Labels.Style.TextStyle.Fill = new NColorFill(NColor.Black);
m_Scale.MajorTickMode = ENMajorTickMode.AutoMaxCount;
m_Scale.OuterMajorTicks.Fill = new NColorFill(NColor.Red);
m_Scale.OuterMinorTicks.Shape = ENScaleValueMarkerShape.Line;
m_Scale.OuterMajorTicks.Shape = ENScaleValueMarkerShape.Star;
// Value indicator - Needle
m_NeedleIndicator = new NNeedleValueIndicator(60);
m_NeedleIndicator.OffsetOriginMode = ENIndicatorOffsetOriginMode.ScaleMiddle;
m_NeedleIndicator.Value = 79;
m_NeedleIndicator.Fill = new NStockGradientFill(ENGradientStyle.Horizontal, ENGradientVariant.Variant1, NColor.White, NColor.Red);
m_NeedleIndicator.OffsetFromScale = 15.0;
m_NeedleIndicator.Stroke.Color = NColor.Red;
m_RadialGauge.Indicators.Add(m_NeedleIndicator);
return stack;
}
public NWidget CreateExampleControls()
{
NStackPanel stack = new NStackPanel();
NStackPanel propertyStack = new NStackPanel();
stack.Add(new NUniSizeBoxGroup(propertyStack));
// major tick properties
NGroupBox majorTicksGroupBox = new NGroupBox("Major Ticks");
propertyStack.Add(majorTicksGroupBox);
NStackPanel majorTicksGroupBoxGroupBoxContent = new NStackPanel();
majorTicksGroupBox.Content = new NUniSizeBoxGroup(majorTicksGroupBoxGroupBoxContent);
// minor tick properties
NGroupBox minorTicksGroupBox = new NGroupBox("Minor Ticks");
propertyStack.Add(minorTicksGroupBox);
NStackPanel minorTicksGroupBoxContent = new NStackPanel();
minorTicksGroupBox.Content = new NUniSizeBoxGroup(minorTicksGroupBoxContent);
// Scale Ruler Color Fill
m_ScaleFillButton = new NButton("Scale Fill Style");
m_ScaleFillButton.Click += OnScaleFillButtonClick;
propertyStack.Add(m_ScaleFillButton);
// Load Predifined Scale Type
m_ScaleTypeComboBox = new NComboBox();
m_ScaleTypeComboBox.Items.FillFromEnum();
m_ScaleTypeComboBox.SelectedIndex = (int)m_ScaleTypeComboBox.SelectedIndex;
m_ScaleTypeComboBox.SelectedIndexChanged += OnScaleStyleComboBoxSelectedIndexChanged;
propertyStack.Add(new NPairBox("Load Predifined Scale Style:", m_ScaleTypeComboBox, true));
// Change Major Tick Mode
m_MajorTickModeComboBox = new NComboBox();
m_MajorTickModeComboBox.Items.FillFromEnum();
m_MajorTickModeComboBox.SelectedIndex = (int)m_MajorTickModeComboBox.SelectedIndex;
m_MajorTickModeComboBox.SelectedIndexChanged += OnMajorTickModeComboBoxSelectedIndexChanged;
majorTicksGroupBoxGroupBoxContent.Add(new NPairBox("Change Major Tick Mode:", m_MajorTickModeComboBox, true));
// Change Major Tick Shape
m_MajorTickShapeComboBox = new NComboBox();
m_MajorTickShapeComboBox.Items.FillFromEnum();
m_MajorTickShapeComboBox.SelectedIndex = m_MajorTickShapeComboBox.SelectedIndex;
m_MajorTickShapeComboBox.SelectedIndexChanged += OnMajorTickShapeComboBoxSelectedIndexChanged;
majorTicksGroupBoxGroupBoxContent.Add(new NPairBox("Change Major Tick Shape:", m_MajorTickShapeComboBox, true));
// Outer Major Ticks Fill
m_OuterMajorTicksFillButton = new NButton("Outer Major Ticks Fill");
m_OuterMajorTicksFillButton.Click += OnOuterMajorTickFillButtonClick;
majorTicksGroupBoxGroupBoxContent.Add(m_OuterMajorTicksFillButton);
// Change Major Tick Shape
m_MinorTickShapeComboBox = new NComboBox();
m_MinorTickShapeComboBox.Items.FillFromEnum();
m_MinorTickShapeComboBox.SelectedIndex = m_MajorTickShapeComboBox.SelectedIndex;
m_MinorTickShapeComboBox.SelectedIndexChanged += OnMinorTickShapeComboBoxSelectedIndexChanged;
minorTicksGroupBoxContent.Add(new NPairBox("Change Minor Tick Shape:", m_MinorTickShapeComboBox, true));
// Change Minor Tick Mode
m_MinorTickModeComboBox = new NComboBox();
m_MinorTickModeComboBox.Items.FillFromEnum();
m_MinorTickModeComboBox.SelectedIndex = (int)m_MinorTickModeComboBox.SelectedIndex;
m_MinorTickModeComboBox.SelectedIndexChanged += OnMinorTickModeComboBoxSelectedIndexChanged;
minorTicksGroupBoxContent.Add(new NPairBox("Change Minor Tick Mode:", m_MinorTickModeComboBox, true));
// Minor Tick Color Fill
m_MinorTickButton = new NButton("Minor Tick Fill Style");
m_MinorTickButton.Click += OnMinorTickFillButtonClick;
minorTicksGroupBoxContent.Add(m_MinorTickButton);
return stack;
}
public string GetExampleDescription()
{
return @"The example demonstrates various appearance-related properties of the scale bar.
";
}
///
/// Gets the relevant documentation links for the example
///
///
public (string Name, string Url)[] GetDocumentationUrls()
{
return new[]
{
("Gauges Axes", "https://www.nevron.com/docs/openvision/gauges-axes.html"),
("Scales Overview", "https://www.nevron.com/docs/openvision/scales-overview.html"),
("Gauges Overview", "https://www.nevron.com/docs/openvision/gauges-overview.html"),
("Scale Ticks", "https://www.nevron.com/docs/openvision/scale-ticks.html"),
("Scale Common Label Settings", "https://www.nevron.com/docs/openvision/scale-label-settings.html"),
};
}
#endregion
#region Implementation
#endregion
#region Event Handlers
private void OnScaleFillButtonClick(NEventArgs arg)
{
NEditorWindow.CreateForType(
(NFill)m_Scale.Ruler.Fill.DeepClone(),
null,
m_Scale.Ruler.DisplayWindow,
false,
OnColorFillEdited).Open();
}
private void OnColorFillEdited(NFill fill)
{
m_Scale.Ruler.Fill = (NFill)(fill.DeepClone());
}
private void OnScaleStyleComboBoxSelectedIndexChanged(NValueChangeEventArgs arg)
{
m_Scale.SetPredefinedScale((ENPredefinedScaleStyle)m_ScaleTypeComboBox.SelectedIndex);
m_MajorTickModeComboBox.SelectedIndex = (int)m_Scale.MajorTickMode;
m_MinorTickModeComboBox.SelectedIndex = (int)m_Scale.MajorTickMode;
m_MajorTickShapeComboBox.SelectedIndex = (int)m_Scale.OuterMajorTicks.Shape;
m_MinorTickShapeComboBox.SelectedIndex = (int)m_Scale.OuterMinorTicks.Shape;
}
private void OnMajorTickModeComboBoxSelectedIndexChanged(NValueChangeEventArgs arg)
{
m_Scale.MajorTickMode = (ENMajorTickMode)m_MajorTickModeComboBox.SelectedIndex;
}
private void OnMinorTickModeComboBoxSelectedIndexChanged(NValueChangeEventArgs arg)
{
m_Scale.MajorTickMode = (ENMajorTickMode)m_MinorTickModeComboBox.SelectedIndex;
}
private void OnMinorTickFillButtonClick(NEventArgs arg)
{
NEditorWindow.CreateForType(
(NFill)m_Scale.OuterMinorTicks.Fill.DeepClone(),
null,
m_Scale.OuterMinorTicks.DisplayWindow,
false,
OnOuterMinorTicksFillEdited).Open();
}
private void OnOuterMinorTicksFillEdited(NFill fill)
{
m_Scale.OuterMinorTicks.Fill = (NFill)(fill.DeepClone());
}
private void OnOuterMajorTickFillButtonClick(NEventArgs arg)
{
NEditorWindow.CreateForType(
(NFill)m_Scale.OuterMajorTicks.Fill.DeepClone(),
null,
m_Scale.OuterMajorTicks.DisplayWindow,
false,
OnOuterMajorTicksFillEdited).Open();
}
private void OnOuterMajorTicksFillEdited(NFill fill)
{
m_Scale.OuterMajorTicks.Fill = (NFill)(fill.DeepClone());
}
private void OnMinorTickShapeComboBoxSelectedIndexChanged(NValueChangeEventArgs arg)
{
m_Scale.OuterMinorTicks.Shape = (ENScaleValueMarkerShape)m_MinorTickShapeComboBox.SelectedIndex;
}
private void OnMajorTickShapeComboBoxSelectedIndexChanged(NValueChangeEventArgs arg)
{
m_Scale.OuterMajorTicks.Shape = (ENScaleValueMarkerShape)m_MajorTickShapeComboBox.SelectedIndex;
}
#endregion
#region Fields
NRadialGauge m_RadialGauge;
NStandardScale m_Scale;
NNeedleValueIndicator m_NeedleIndicator;
NComboBox m_ScaleTypeComboBox;
NComboBox m_MajorTickModeComboBox;
NComboBox m_MinorTickModeComboBox;
NComboBox m_MinorTickShapeComboBox;
NComboBox m_MajorTickShapeComboBox;
NButton m_MinorTickButton;
NButton m_OuterMajorTicksFillButton;
NButton m_ScaleFillButton;
#endregion
#region Static Methods
#endregion
#region Constants
private static readonly NSize defaultRadialGaugeSize = new NSize(300, 300);
#endregion
#region Nested Types
#endregion
}
} | Language: VB.NET |
Imports Nevron.Nov
Imports Nevron.Nov.Chart
Imports Nevron.Nov.Dom
Imports Nevron.Nov.Editors
Imports Nevron.Nov.Graphics
Imports Nevron.Nov.Layout
Imports Nevron.Nov.UI
Imports Nevron.Nov.Windows.Wpf
Class MainWindow
#Region "Constructors"
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
' Set form title
Title = "NOV WPF - NScalesAppearanceExample"
' Create the NOV example and its controls
Dim exampleContent As NWidget = CreateExampleContent()
Dim exampleControls As NWidget = CreateExampleControls()
If Not exampleControls Is Nothing Then
exampleControls.PreferredWidth = 300
End If
' Place the example and its controls in a pair box
Dim pairBox As NPairBox = New NPairBox(exampleContent, exampleControls)
pairBox.FillMode = ENStackFillMode.First
pairBox.FitMode = ENStackFitMode.First
pairBox.Margins = New NMargins(NDesign.HorizontalSpacing, NDesign.VerticalSpacing)
' Host the example in the form
Dim host As NNovWidgetHost(Of NWidget) = New NNovWidgetHost(Of NWidget)(pairBox)
Content = host
End Sub
#End Region
#Region "Example"
Public Function CreateExampleContent() As NWidget
Dim stack As NStackPanel = New NStackPanel()
Dim controlStack As NStackPanel = New NStackPanel()
controlStack.Direction = ENHVDirection.LeftToRight
stack.Add(controlStack)
' create the radial gauge
m_RadialGauge = New NRadialGauge()
m_RadialGauge.Dial = New NDial(ENDialShape.Circle, New NEdgeDialRim())
m_RadialGauge.PreferredSize = defaultRadialGaugeSize
m_RadialGauge.SweepAngle = New NAngle(280, NUnit.Degree)
m_RadialGauge.BeginAngle = New NAngle(120, NUnit.Degree)
controlStack.Add(m_RadialGauge)
m_RadialGauge.SweepAngle = New NAngle(310, NUnit.Degree)
m_RadialGauge.BeginAngle = New NAngle(-240, NUnit.Degree)
' configure the axis
Dim axis As NGaugeAxis = New NGaugeAxis()
axis.Anchor.ScaleOrientation = ENScaleOrientation.Right
axis.Range = New NRange(0, 100)
axis.Anchor = New NDockGaugeAxisAnchor(ENGaugeAxisDockZone.Top, True, ENScaleOrientation.Right, 0.0F, 100.0F)
m_RadialGauge.Axes.Add(axis)
' create scale
m_Scale = CType(axis.Scale, NStandardScale)
m_Scale.SetPredefinedScale(ENPredefinedScaleStyle.PresentationNoStroke)
m_Scale.Labels.OverlapResolveLayouts = New NDomArray(Of ENLevelLabelsLayout)()
m_Scale.MinorTickCount = 3
m_Scale.Ruler.Fill = New NColorFill(NColor.FromColor(NColor.Transparent, 0.4F))
m_Scale.OuterMajorTicks.Fill = New NColorFill(NColor.Black)
m_Scale.Labels.Style.TextStyle.Font = New NFont("Arimo", 12, ENFontStyle.Bold)
m_Scale.Labels.Style.TextStyle.Fill = New NColorFill(NColor.Black)
m_Scale.MajorTickMode = ENMajorTickMode.AutoMaxCount
m_Scale.OuterMajorTicks.Fill = New NColorFill(NColor.Red)
m_Scale.OuterMinorTicks.Shape = ENScaleValueMarkerShape.Line
m_Scale.OuterMajorTicks.Shape = ENScaleValueMarkerShape.Star
' Value indicator - Needle
m_NeedleIndicator = New NNeedleValueIndicator(60)
m_NeedleIndicator.OffsetOriginMode = ENIndicatorOffsetOriginMode.ScaleMiddle
m_NeedleIndicator.Value = 79
m_NeedleIndicator.Fill = New NStockGradientFill(ENGradientStyle.Horizontal, ENGradientVariant.Variant1, NColor.White, NColor.Red)
m_NeedleIndicator.OffsetFromScale = 15.0
m_NeedleIndicator.Stroke.Color = NColor.Red
m_RadialGauge.Indicators.Add(m_NeedleIndicator)
Return stack
End Function
Public Function CreateExampleControls() As NWidget
Dim stack As NStackPanel = New NStackPanel()
Dim propertyStack As NStackPanel = New NStackPanel()
stack.Add(New NUniSizeBoxGroup(propertyStack))
' major tick properties
Dim majorTicksGroupBox As NGroupBox = New NGroupBox("Major Ticks")
propertyStack.Add(majorTicksGroupBox)
Dim majorTicksGroupBoxGroupBoxContent As NStackPanel = New NStackPanel()
majorTicksGroupBox.Content = New NUniSizeBoxGroup(majorTicksGroupBoxGroupBoxContent)
' minor tick properties
Dim minorTicksGroupBox As NGroupBox = New NGroupBox("Minor Ticks")
propertyStack.Add(minorTicksGroupBox)
Dim minorTicksGroupBoxContent As NStackPanel = New NStackPanel()
minorTicksGroupBox.Content = New NUniSizeBoxGroup(minorTicksGroupBoxContent)
' Scale Ruler Color Fill
m_ScaleFillButton = New NButton("Scale Fill Style")
Me.m_ScaleFillButton.Click += AddressOf OnScaleFillButtonClick
propertyStack.Add(m_ScaleFillButton)
' Load Predifined Scale Type
m_ScaleTypeComboBox = New NComboBox()
m_ScaleTypeComboBox.Items.FillFromEnum(Of ENPredefinedScaleStyle)()
m_ScaleTypeComboBox.SelectedIndex = m_ScaleTypeComboBox.SelectedIndex
Me.m_ScaleTypeComboBox.SelectedIndexChanged += AddressOf OnScaleStyleComboBoxSelectedIndexChanged
propertyStack.Add(New NPairBox("Load Predifined Scale Style:", m_ScaleTypeComboBox, True))
' Change Major Tick Mode
m_MajorTickModeComboBox = New NComboBox()
m_MajorTickModeComboBox.Items.FillFromEnum(Of ENMajorTickMode)()
m_MajorTickModeComboBox.SelectedIndex = m_MajorTickModeComboBox.SelectedIndex
Me.m_MajorTickModeComboBox.SelectedIndexChanged += AddressOf OnMajorTickModeComboBoxSelectedIndexChanged
majorTicksGroupBoxGroupBoxContent.Add(New NPairBox("Change Major Tick Mode:", m_MajorTickModeComboBox, True))
' Change Major Tick Shape
m_MajorTickShapeComboBox = New NComboBox()
m_MajorTickShapeComboBox.Items.FillFromEnum(Of ENScaleValueMarkerShape)()
m_MajorTickShapeComboBox.SelectedIndex = m_MajorTickShapeComboBox.SelectedIndex
Me.m_MajorTickShapeComboBox.SelectedIndexChanged += AddressOf OnMajorTickShapeComboBoxSelectedIndexChanged
majorTicksGroupBoxGroupBoxContent.Add(New NPairBox("Change Major Tick Shape:", m_MajorTickShapeComboBox, True))
' Outer Major Ticks Fill
m_OuterMajorTicksFillButton = New NButton("Outer Major Ticks Fill")
Me.m_OuterMajorTicksFillButton.Click += AddressOf OnOuterMajorTickFillButtonClick
majorTicksGroupBoxGroupBoxContent.Add(m_OuterMajorTicksFillButton)
' Change Major Tick Shape
m_MinorTickShapeComboBox = New NComboBox()
m_MinorTickShapeComboBox.Items.FillFromEnum(Of ENScaleValueMarkerShape)()
m_MinorTickShapeComboBox.SelectedIndex = m_MajorTickShapeComboBox.SelectedIndex
Me.m_MinorTickShapeComboBox.SelectedIndexChanged += AddressOf OnMinorTickShapeComboBoxSelectedIndexChanged
minorTicksGroupBoxContent.Add(New NPairBox("Change Minor Tick Shape:", m_MinorTickShapeComboBox, True))
' Change Minor Tick Mode
m_MinorTickModeComboBox = New NComboBox()
m_MinorTickModeComboBox.Items.FillFromEnum(Of ENMajorTickMode)()
m_MinorTickModeComboBox.SelectedIndex = m_MinorTickModeComboBox.SelectedIndex
Me.m_MinorTickModeComboBox.SelectedIndexChanged += AddressOf OnMinorTickModeComboBoxSelectedIndexChanged
minorTicksGroupBoxContent.Add(New NPairBox("Change Minor Tick Mode:", m_MinorTickModeComboBox, True))
' Minor Tick Color Fill
m_MinorTickButton = New NButton("Minor Tick Fill Style")
Me.m_MinorTickButton.Click += AddressOf OnMinorTickFillButtonClick
minorTicksGroupBoxContent.Add(m_MinorTickButton)
Return stack
End Function
Public Function GetExampleDescription() As String
Return "The example demonstrates various appearance-related properties of the scale bar.
"
End Function
'''
''' Gets the relevant documentation links for the example
'''
'''
Public Function GetDocumentationUrls() As (String, String)()
Return {("Gauges Axes", "https://www.nevron.com/docs/openvision/gauges-axes.html"), ("Scales Overview", "https://www.nevron.com/docs/openvision/scales-overview.html"), ("Gauges Overview", "https://www.nevron.com/docs/openvision/gauges-overview.html"), ("Scale Ticks", "https://www.nevron.com/docs/openvision/scale-ticks.html"), ("Scale Common Label Settings", "https://www.nevron.com/docs/openvision/scale-label-settings.html")}
End Function
#End Region
#Region "Implementation"
#End Region
#Region "Event Handlers"
Private Sub OnScaleFillButtonClick(arg As NEventArgs)
Call NEditorWindow.CreateForType(CType(CType(m_Scale.Ruler.Fill.DeepClone(), NFill), NFill), Nothing, CType(m_Scale.Ruler.DisplayWindow, NWindow), CBool(False), New DNFunction(Of T)(AddressOf OnColorFillEdited)).Open()
End Sub
Private Sub OnColorFillEdited(fill As NFill)
m_Scale.Ruler.Fill = CType((fill.DeepClone()), NFill)
End Sub
Private Sub OnScaleStyleComboBoxSelectedIndexChanged(arg As NValueChangeEventArgs)
m_Scale.SetPredefinedScale(CType(m_ScaleTypeComboBox.SelectedIndex, ENPredefinedScaleStyle))
m_MajorTickModeComboBox.SelectedIndex = m_Scale.MajorTickMode
m_MinorTickModeComboBox.SelectedIndex = m_Scale.MajorTickMode
m_MajorTickShapeComboBox.SelectedIndex = m_Scale.OuterMajorTicks.Shape
m_MinorTickShapeComboBox.SelectedIndex = m_Scale.OuterMinorTicks.Shape
End Sub
Private Sub OnMajorTickModeComboBoxSelectedIndexChanged(arg As NValueChangeEventArgs)
m_Scale.MajorTickMode = CType(m_MajorTickModeComboBox.SelectedIndex, ENMajorTickMode)
End Sub
Private Sub OnMinorTickModeComboBoxSelectedIndexChanged(arg As NValueChangeEventArgs)
m_Scale.MajorTickMode = CType(m_MinorTickModeComboBox.SelectedIndex, ENMajorTickMode)
End Sub
Private Sub OnMinorTickFillButtonClick(arg As NEventArgs)
Call NEditorWindow.CreateForType(CType(CType(m_Scale.OuterMinorTicks.Fill.DeepClone(), NFill), NFill), Nothing, CType(m_Scale.OuterMinorTicks.DisplayWindow, NWindow), CBool(False), New DNFunction(Of T)(AddressOf OnOuterMinorTicksFillEdited)).Open()
End Sub
Private Sub OnOuterMinorTicksFillEdited(fill As NFill)
m_Scale.OuterMinorTicks.Fill = CType((fill.DeepClone()), NFill)
End Sub
Private Sub OnOuterMajorTickFillButtonClick(arg As NEventArgs)
Call NEditorWindow.CreateForType(CType(CType(m_Scale.OuterMajorTicks.Fill.DeepClone(), NFill), NFill), Nothing, CType(m_Scale.OuterMajorTicks.DisplayWindow, NWindow), CBool(False), New DNFunction(Of T)(AddressOf OnOuterMajorTicksFillEdited)).Open()
End Sub
Private Sub OnOuterMajorTicksFillEdited(fill As NFill)
m_Scale.OuterMajorTicks.Fill = CType((fill.DeepClone()), NFill)
End Sub
Private Sub OnMinorTickShapeComboBoxSelectedIndexChanged(arg As NValueChangeEventArgs)
m_Scale.OuterMinorTicks.Shape = CType(m_MinorTickShapeComboBox.SelectedIndex, ENScaleValueMarkerShape)
End Sub
Private Sub OnMajorTickShapeComboBoxSelectedIndexChanged(arg As NValueChangeEventArgs)
m_Scale.OuterMajorTicks.Shape = CType(m_MajorTickShapeComboBox.SelectedIndex, ENScaleValueMarkerShape)
End Sub
#End Region
#Region "Fields"
Private m_RadialGauge As NRadialGauge
Private m_Scale As NStandardScale
Private m_NeedleIndicator As NNeedleValueIndicator
Private m_ScaleTypeComboBox As NComboBox
Private m_MajorTickModeComboBox As NComboBox
Private m_MinorTickModeComboBox As NComboBox
Private m_MinorTickShapeComboBox As NComboBox
Private m_MajorTickShapeComboBox As NComboBox
Private m_MinorTickButton As NButton
Private m_OuterMajorTicksFillButton As NButton
Private m_ScaleFillButton As NButton
#End Region
#Region "Static Methods"
#End Region
#Region "Constants"
Private Shared ReadOnly defaultRadialGaugeSize As NSize = New NSize(300, 300)
#End Region
#Region "Nested Types"
#End Region
End Class