Entferne lblNoFileSelected und vereinheitliche Statusanzeige

Das Label lblNoFileSelected wurde entfernt und alle Verweise darauf durch lbFileNotLoaded ersetzt. Die Eigenschaften von lbFileNotLoaded wurden erweitert (rote Schrift, UseForeColor aktiviert). Die Sichtbarkeitssteuerung erfolgt nun ausschließlich über lbFileNotLoaded. Ressourcen und Metadaten in der .resx-Datei wurden entsprechend bereinigt. Damit ist die Statusanzeige für "Keine Datei geladen" nun konsistent und der Code aufgeräumter.
This commit is contained in:
Developer01
2026-05-06 11:45:43 +02:00
parent 40c90dbdac
commit 10c4d633b9
3 changed files with 27 additions and 40 deletions

View File

@@ -65,7 +65,6 @@ Partial Class DocumentViewer
Me.lbFileNotLoaded = New DevExpress.XtraEditors.LabelControl()
Me.RichEditControl1 = New DevExpress.XtraRichEdit.RichEditControl()
Me.lblInfo = New System.Windows.Forms.Label()
Me.lblNoFileSelected = New DevExpress.XtraEditors.LabelControl()
CType(Me.BarManager1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.RepositoryItemTextEdit2, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.RepositoryItemTextEdit3, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -439,7 +438,9 @@ Partial Class DocumentViewer
Me.lbFileNotLoaded.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.lbFileNotLoaded.Appearance.Font = New System.Drawing.Font("Segoe UI", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lbFileNotLoaded.Appearance.ForeColor = System.Drawing.Color.Red
Me.lbFileNotLoaded.Appearance.Options.UseFont = True
Me.lbFileNotLoaded.Appearance.Options.UseForeColor = True
Me.lbFileNotLoaded.Appearance.Options.UseTextOptions = True
Me.lbFileNotLoaded.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center
Me.lbFileNotLoaded.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center
@@ -469,23 +470,10 @@ Partial Class DocumentViewer
Me.lblInfo.Size = New System.Drawing.Size(100, 23)
Me.lblInfo.TabIndex = 0
'
'lblNoFileSelected
'
Me.lblNoFileSelected.Appearance.Font = New System.Drawing.Font("Tahoma", 12.0!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblNoFileSelected.Appearance.ForeColor = System.Drawing.Color.Firebrick
Me.lblNoFileSelected.Appearance.Options.UseFont = True
Me.lblNoFileSelected.Appearance.Options.UseForeColor = True
Me.lblNoFileSelected.Location = New System.Drawing.Point(18, 39)
Me.lblNoFileSelected.Name = "lblNoFileSelected"
Me.lblNoFileSelected.Size = New System.Drawing.Size(130, 19)
Me.lblNoFileSelected.TabIndex = 11
Me.lblNoFileSelected.Text = "No file selected"
'
'DocumentViewer
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Controls.Add(Me.lblNoFileSelected)
Me.Controls.Add(Me.RichEditControl1)
Me.Controls.Add(Me.lbFileNotLoaded)
Me.Controls.Add(Me.SpreadsheetControl1)
@@ -549,5 +537,4 @@ Partial Class DocumentViewer
Friend WithEvents btnSearch2 As DevExpress.XtraBars.BarButtonItem
Friend WithEvents RichEditControl1 As DevExpress.XtraRichEdit.RichEditControl
Friend WithEvents lblInfo As Label
Friend WithEvents lblNoFileSelected As DevExpress.XtraEditors.LabelControl
End Class