diff --git a/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj b/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj index cb2e73f8..d9582a0a 100644 --- a/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj +++ b/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj @@ -26,6 +26,10 @@ + + + + @@ -110,6 +114,18 @@ Always + + Always + + + Always + + + Always + + + Always + Always diff --git a/BPASmartClient.SCADAControl/CustomerControls/TheTextBlock.cs b/BPASmartClient.SCADAControl/CustomerControls/TheTextBlock.cs index 6466347b..6fb14d28 100644 --- a/BPASmartClient.SCADAControl/CustomerControls/TheTextBlock.cs +++ b/BPASmartClient.SCADAControl/CustomerControls/TheTextBlock.cs @@ -33,8 +33,18 @@ namespace BPASmartClient.SCADAControl.CustomerControls ResourceDictionary languageResDic = new ResourceDictionary(); languageResDic.Source = new Uri(@"/BPASmartClient.SCADAControl;component/Themes/Generic.xaml", UriKind.RelativeOrAbsolute); this.Resources.MergedDictionaries.Add(languageResDic); - Height = 30; - Width = 80; + this.Loaded += TheTextBlock_Loaded; + } + + private void TheTextBlock_Loaded(object sender, RoutedEventArgs e) + { + if (this.ActualWidth <= 0) + { + Text = "文本"; + Height = 30; + Width = 80; + FontSize = 16; + } } public string ControlType => "控件"; diff --git a/BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs b/BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs index b32269a4..52b64ed5 100644 --- a/BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs +++ b/BPASmartClient.SCADAControl/CustomerControls/TheTextBox.cs @@ -37,12 +37,23 @@ namespace BPASmartClient.SCADAControl.CustomerControls ResourceDictionary languageResDic = new ResourceDictionary(); languageResDic.Source = new Uri(@"/BPASmartClient.SCADAControl;component/Themes/Generic.xaml",UriKind.RelativeOrAbsolute); this.Resources.MergedDictionaries.Add(languageResDic); - Height = 30; - Width = 80; - FontSize = 16; + this.KeyDown += TheTextBox_KeyDown; this.TextChanged += TheTextBox_TextChanged; + this.Loaded += TheTextBox_Loaded; } + + private void TheTextBox_Loaded(object sender, RoutedEventArgs e) + { + if (this.ActualWidth <= 10) + { + Text = "文本框"; + Height = 30; + Width = 80; + FontSize = 16; + } + } + bool isRun=false; private void TheTextBox_KeyDown(object sender,KeyEventArgs e) { diff --git a/BPASmartClient.SCADAControl/Images/Scroll_←.png b/BPASmartClient.SCADAControl/Images/Scroll_←.png new file mode 100644 index 00000000..1c6e2793 Binary files /dev/null and b/BPASmartClient.SCADAControl/Images/Scroll_←.png differ diff --git a/BPASmartClient.SCADAControl/Images/Scroll_↑.png b/BPASmartClient.SCADAControl/Images/Scroll_↑.png new file mode 100644 index 00000000..67a7bf71 Binary files /dev/null and b/BPASmartClient.SCADAControl/Images/Scroll_↑.png differ diff --git a/BPASmartClient.SCADAControl/Images/Scroll_→.png b/BPASmartClient.SCADAControl/Images/Scroll_→.png new file mode 100644 index 00000000..cb7e0376 Binary files /dev/null and b/BPASmartClient.SCADAControl/Images/Scroll_→.png differ diff --git a/BPASmartClient.SCADAControl/Images/Scroll_↓.png b/BPASmartClient.SCADAControl/Images/Scroll_↓.png new file mode 100644 index 00000000..6e975baf Binary files /dev/null and b/BPASmartClient.SCADAControl/Images/Scroll_↓.png differ diff --git a/BPASmartClient.SCADAControl/Themes/Generic.xaml b/BPASmartClient.SCADAControl/Themes/Generic.xaml index 08ae3759..c2088638 100644 --- a/BPASmartClient.SCADAControl/Themes/Generic.xaml +++ b/BPASmartClient.SCADAControl/Themes/Generic.xaml @@ -1,6 +1,7 @@  + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BeDesignerSCADA/Controls/MainCanvasPanel.xaml b/BeDesignerSCADA/Controls/MainCanvasPanel.xaml index 952ee3d4..78bc1612 100644 --- a/BeDesignerSCADA/Controls/MainCanvasPanel.xaml +++ b/BeDesignerSCADA/Controls/MainCanvasPanel.xaml @@ -30,7 +30,7 @@ - + diff --git a/BeDesignerSCADA/MainWindow.xaml b/BeDesignerSCADA/MainWindow.xaml index 7301a858..2db56d8c 100644 --- a/BeDesignerSCADA/MainWindow.xaml +++ b/BeDesignerSCADA/MainWindow.xaml @@ -12,16 +12,6 @@ mc:Ignorable="d" WindowStartupLocation="CenterScreen" Title="黑菠萝科技-[组态软件1.0]" Height="900" Width="1400" Icon="/Images/ico.ico" > - - - - - - - - - -